Sublime Forum

What causes hot pink highlighting?

#1


Why is the text highlighted in hot pink? Syntax is set to php, platform is ST 2.0.1 on OS X.

The hot pink color is being caused by the “/" comment, which is a Drupal convention. Is there a way to stop it from doing this? Is it interpreting "/” as some special syntax?

0 Likes

Why is there a pink line going from the end of the line?
#2

Hot pink is showing invalid syntax.

Your comments are screwed up. You do multi-line comments as * *\ NOT * *.

0 Likes

#3

Hi,

Is there any way to disable this pink color. Thank you in advance.

Thanks,
Unnikrishan B.

0 Likes

#4

Actually there are 2 ways to get rid of this pink highlight:

  1. fix the comment’s delimiter as facelessuser said (you have a problem on line 5 * instead of *, but then you need put another comment start right after that)
  2. change color scheme, or modify it… in Packages folder under (/Color Scheme - Default/Monokai.tmTheme) check for:
<dict>
	<key>name</key>
	<string>Invalid</string>
	<key>scope</key>
	<string>invalid</string>
	<key>settings</key>
	<dict>
		<key>background</key>
		<string>#F92672</string>
		<key>fontStyle</key>
		<string></string>
		<key>foreground</key>
		<string>#F8F8F0</string>
	</dict>
</dict>
0 Likes

#5

Hi,

I am using sublime text 3 build 3047. I couldn’t find such a file in my Package control folder. I tried to locate the file using the linux find command.

Following is the result.

./Cache/Color Scheme - Default/Monokai Bright.tmTheme.cache
./Cache/Color Scheme - Default/Monokai.tmTheme.cache

I am using the Monokai color schema in my sublime.

Following is a commenting style I usually followed when writing PHP code.

/**
*
some comment string here
*/

The above comment is highlighted as pink in sublime.

Thanks,
Unnikrishnan B.

0 Likes