Sublime Forum

ST3 - PHP within HTML comments

#1

When a PHP start tag is within an HTML block comment, the code in the PHP block is half-highlighted. The default color (for me, white) is overridden with the HTML comment color (for me, gray) while other entries that have defined colors, like strings and keywords, retain their color.

I have attached an image that demonstrates a block of code with this property. My syntax highlighting is on PHP with a custom theme, and I’m presently running Dev Build 3052, though I suspect the bug has been around for awhile.

(Half-edit: apparently the board quota has been reached? In that case, the image with the issue demonstrated is here: (http://i.imgur.com/bG2dIkV.png) )

0 Likes