closing php tag ?> not recognized -...

User 2269850 Photo


Registered User
8 posts

when i insert a php block into my XHTML page, hi-liter recognizes the opening tag <?php and turns it red. but hi-liter doesn't seem to recognize the closing tag ?> and just colors it as script (tho not the same color as the php text, nor standard text).

the php works fine, but not the hi-liter. i have mentioned this to tech support, and the response it, yep, it doesn't work right.

does anyone know how to get this working ?
User 122279 Photo


Senior Advisor
14,649 posts

It won't work since the closing php tag is defined as script, whereas the opening php tag is defined as php delimiter. It needs to be changed in the source code of the programme - and it should be. Just as <a href> and </a> are both defined as anchor tags and thus get the same colour.

But this has never been a problem for me.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2269850 Photo


Registered User
8 posts

Inger -

when you say it hasn't been a problem for you, do you mean that the hi-liting issue is something you ignore, or that you have found a work-around ?

i don't see this problem with other html editors that i have plopped the code into.

User 122279 Photo


Senior Advisor
14,649 posts

I just ignore it. But I'll mention it to the CC staff, maybe they will change it.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.