Editor plain text vs html

Hi all,

I seem to have "broken" something in the editor.
One of the files which was showing the right syntax highlight before, now shows black and white text.

A companion file, shows as HTML editor, whereas this one shows as plain text.

Also it has a sticky top.

Anyone knows how I can reverse this behavior?


Screenshot 2025-07-08 at 23.21.10

Many thanks

The source has no body tag (issue 1) or defined structure aside from a Modal and that doesn't know its a Modal as it has no associated Framework (issue 2, Bootstrap etc) in its structure.

Thank you @Cheese but that's not it, forgot to mention, this is a partial..

On a different computer, it is still working well.

This happened when I tried split layout mode and moved this file to the bottom section.

See bellow correct highlighting on a second computer.

Seems to be a wappler or project settings issue...

@ben any ideais? TY

A partial normally is recognized by the <!-- Wappler include --> comment at the top of the document. When the comment is missing and there is no body tag then it isn't recognized as html and will be opened in code only editor.

Hi @patrick , thank you for your suggestion.

It turned out, it was the .wappler_folder.json file in the partials folder.

It had the file in question removed, due to the editor crash when I split the layout.

I have added it again and now it is back to normal.

Sharing in the interest of everyone with the same problem.