Improvement to Custom Code with PHP on it

If ever written a php under custom code the php code itself shows as text on the GUI of the BS Studio thus making the GUI cluttered with unnecessary texts especially if you have long PHP code.

Instead of showing it as a text maybe its possible to replace it as a wrapper such shown as [PHP Code]

From this:

To this:

Just an idea, hope this works. :slight_smile:


If you give your php code a class name for example phpCode then you can add this in JSfile

if ( == 'html'){
 let x = document.getElementsByClassName("phpCode");
 for (var i = 0; i < x.length; i++) {
    x[i].value = 'php[CODE]';
    x[i].innerHTML = 'php[CODE]';

when you are finish before you export, use the find and replace and delete the class phpCode