Sublime Forum

Php fist line white then purple

#1

Sorry I have very new to Sublime but am loving the product.
If I use Notepad ++ to edit my file it seems consistent.
When I open the same file in Sublime, the 1st line of the php tag is always white>?
See picture attached.
Is this how it is meant to be or am I missing something here.

The screen shows the code in notepad++ and then in sublime
Thanks
Mark

0 Likes

#2

The php closing tag you specified ( >? ) is incorrect, that is the reason you are getting syntax color mismatch.
The correct php closing tag should be ?>.

0 Likes

#3

Indeed, if you use the correct closing tag, all <?php tags will be white. That’s because PHP tags have the “punctuation.section.embedded” scope, and most of the default themes don’t have a color set for that scope.

0 Likes