Sublime Forum

Color Coding Issues

#1

Hello,

Giving ST 3 a trial run - already run into a couple of little bugs. I’m using the Idle theme. I changed the comment color to red.

<dict> <key>name</key> <string>Comment</string> <key>scope</key> <string>comment</string> <key>settings</key> <dict> <key>foreground</key> <string>#ff0000</string> </dict> </dict>

2 Issues

http://www.ktbb.com/lostcommentscolor.jpg

For some reason the comment color change is lost - all good up to “” and a few lines later it’s back to the default color. It does not return for any more html comments however the CDATA comments do remain red.

http://www.ktbb.com/apostrophe.jpg

As you can see - all color coding is gone after the apostrophe in Saturday’s - solid block of green. This happens in all themes.

Any ideas what might be causing this?

0 Likes

#2

Indeed there is a problem, but it’s caused by your include statement: if you leave either a space or semicolon before closing PHP it should work well:
e.g.

<?php include('foo'); ?>
0 Likes

#3

Ah - good catch, iamntz - thank you! That fixed that one. What about the apostrophe issue? Any fix for that?

Thank you!
Daf

0 Likes

#4

Hard to say, since the highlighting is messed up already on the second line (110) in the screen dump. Looks like the syntax has switched to PHP instead of HTML. Maybe some problem in the omitted lines?

0 Likes

#5

Yep - ended up being part of the incomplete php include that iamntz found. All good now! Thank you both!

Daf

0 Likes