Sublime Forum

Sublime and PHP

#1

Illumination is normal, until it reaches to php+html+js.
how to fix?

0 Likes

#2

I suppose Sublime supports the heredoc syntax, but it looks like type tag (or actually, not closing it) is the thing that breaks the syntax highlighting in your example.

Although probably not a permanent solution, this is a quick fix for this specific code:

?><script type="text/javascript"><?php
echo <<<<HTML

// javascript code here

HTML;
0 Likes

#3

in gedit all okay

0 Likes

#4

no solutions?

0 Likes

#5

Maybe can leave the lights only php and html? without js

0 Likes

#6

up

0 Likes