Home Download Buy Blog Forum Support

New User Quick Questions...

New User Quick Questions...

Postby peter.pavlovic on Wed Jun 18, 2008 9:16 pm

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...
peter.pavlovic
 
Posts: 7
Joined: Wed Jun 18, 2008 6:45 pm
Location: New York City

Re: New User Quick Questions...

Postby peter.pavlovic on Thu Jun 19, 2008 1:05 pm

ahah! title bar...
peter.pavlovic
 
Posts: 7
Joined: Wed Jun 18, 2008 6:45 pm
Location: New York City

Re: New User Quick Questions...

Postby jps on Thu Jun 19, 2008 2:24 pm

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?
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: New User Quick Questions...

Postby peter.pavlovic on Thu Jun 26, 2008 8:43 pm

Hi,
Yes, color of single line comments...
peter.pavlovic
 
Posts: 7
Joined: Wed Jun 18, 2008 6:45 pm
Location: New York City

Re: New User Quick Questions...

Postby jps on Sun Jun 29, 2008 7:11 am

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.,

Code: Select all
<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: http://manual.macromates.com/en/scope_selectors
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm


Return to General Discussion

Who is online

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