Home Download Buy Blog Forum Support

Newbie question

Newbie question

Postby dcastellano1 on Wed Feb 15, 2012 6:23 pm

Need to be pointed in the right direction...

On Mac OSX, using Ruby on Rails and just started using Sublime 2. Can't figure out simple stuff like:
- auto closure of HTML and embedded ruby (.erb) brackets, or
- color hiliting of Sass files...

Is there some special setup I need to perform?
I am pretty new to programming so any help is appreciated.

Dave
dcastellano1
 
Posts: 3
Joined: Wed Feb 15, 2012 6:14 pm

Re: Newbie question

Postby nick. on Wed Feb 15, 2012 7:17 pm

This link could work as a SASS syntax highlighter. Copy/paste into a Packages/SASS/SASS.tmLanguage file within the Sublime directory. It might require some tweaking, but in general Sublime can use TextMate's syntax highlighters. Of course, you'll also need a color scheme that supports it.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Newbie question

Postby dcastellano1 on Wed Feb 15, 2012 7:28 pm

Thanks, I'll try it!
dcastellano1
 
Posts: 3
Joined: Wed Feb 15, 2012 6:14 pm

Re: Newbie question

Postby dcastellano1 on Wed Feb 15, 2012 7:44 pm

OK, created the file SASS.tmLanguage in newly created SASS folder. Is there something else I have to do? Nothing has changed when I open the css.scss stylesheets in rails???

Dave
dcastellano1
 
Posts: 3
Joined: Wed Feb 15, 2012 6:14 pm

Re: Newbie question

Postby nick. on Wed Feb 15, 2012 8:15 pm

The link I provided has this line:
Code: Select all
fileTypes = ( 'sass' );


Looks like you should add:
Code: Select all
fileTypes = ( 'sass', 'scss');


Also, I should have mentioned that the file is in JSON currently and ST2 expects XML. You can use AAAPackageDev to make this easier. The readme there explains how to do the conversion.

Last, you'll need a color scheme that supports the SASS scopes defined in the SASS.tmLanguage file you created.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am


Return to General Discussion

Who is online

Users browsing this forum: jfcherng and 14 guests