Home Download Buy Blog Forum Support

What causes hot pink highlighting?

What causes hot pink highlighting?

Postby cacambo on Tue May 14, 2013 9:35 pm

2013.05.14-sthotpink.png
2013.05.14-sthotpink.png (39.67 KiB) Viewed 3187 times


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?
cacambo
 
Posts: 1
Joined: Tue May 14, 2013 9:24 pm

Re: What causes hot pink highlighting?

Postby facelessuser on Tue May 14, 2013 9:37 pm

Hot pink is showing invalid syntax.

Your comments are screwed up. You do multi-line comments as \* *\ NOT \* \*.
facelessuser
 
Posts: 1541
Joined: Tue Apr 05, 2011 7:38 pm

Re: What causes hot pink highlighting?

Postby unnikrishnan on Thu Jun 27, 2013 2:08 pm

Hi,

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

Thanks,
Unnikrishan B.
unnikrishnan
 
Posts: 2
Joined: Thu Jun 27, 2013 2:05 pm

Re: What causes hot pink highlighting?

Postby Orlmente on Fri Jun 28, 2013 8:38 am

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:
Code: Select all
<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>
Orlmente
 
Posts: 95
Joined: Mon Mar 18, 2013 12:37 pm

Re: What causes hot pink highlighting?

Postby unnikrishnan on Tue Jul 09, 2013 8:02 am

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.
unnikrishnan
 
Posts: 2
Joined: Thu Jun 27, 2013 2:05 pm


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 24 guests