Sublime Forum

New User Quick Questions

#1

Hi,
Sublime’s got some nice features I must say.
The mini-map alone is worth it as you can recognize the “pattern” of your code and zoom straight there - wonderful stuff!

Couple of quick questions…

  1. How can I tell which version I’m using - about just goes to a web page?
  2. Is there a way to set syntax highlighting for a single line comment (//)? I’ve changed it for a block comment but this seems to elude me.

All 'round - good effort - I used it for an hour and bought a license. Better value than the Brief, Epsilon, e and Multi-Edit editors I have.

Love that full screen - talk about clean interface…

0 Likes

#2

ahah! title bar…

0 Likes

#3

Hi Peter - Welcome to the forums!

Re #2, do you mean changing the colour used to display single line comments, or to define single line comments for a new language syntax?

0 Likes

#4

Hi,
Yes, color of single line comments…

0 Likes

#5

You can use the “comment.line selector” to target single line comments: it’s more specific than the “comment” selector, so it’ll take precedence. e.g.,

<dict>
	<key>name</key>
	<string>Comment</string>
	<key>scope</key>
	<string>comment.line</string>
	<key>settings</key>
	<dict>
		<key>foreground</key>
		<string>pink</string>
	</dict>
</dict>

There’s more information at: manual.macromates.com/en/scope_selectors

0 Likes