Home Download Buy Blog Forum Support

SCSS support

SCSS support

Postby krisbulman on Mon Aug 01, 2011 12:59 pm

The current method of getting SASS syntax highlighting support on OSX is:

Code: Select all
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/kuroir/SCSS.tmbundle.git "SCSS"


It'd be much easier for all if Sass syntax highlighting was included

https://github.com/kuroir/SCSS.tmbundle/
krisbulman
 
Posts: 5
Joined: Mon Aug 01, 2011 12:52 pm

Re: SCSS support

Postby charlesroper on Tue Aug 02, 2011 8:30 am

I've created a ST specific fork for Kuroir's bundle:

https://github.com/charlesr/SCSS.tmbundle

There are some things in there which probably don't need to be, but I wasn't sure so I left them in. Could anyone confirm what doesn't work or is redundant? Thanks.
charlesroper
 
Posts: 107
Joined: Thu Feb 18, 2010 7:30 am

Re: SCSS support

Postby charlesroper on Tue Aug 02, 2011 12:18 pm

The official repo for the ST2 SCSS package has moved:

https://github.com/kuroir/SCSS/tree/SublimeText2

Note that it is a branch, not master so pay attention to the README if you're cloning via Github.
charlesroper
 
Posts: 107
Joined: Thu Feb 18, 2010 7:30 am

Re: SCSS support

Postby krisbulman on Tue Aug 02, 2011 1:41 pm

Seems to be a follow up here.
viewtopic.php?f=3&t=2592

Update on the Installation Instructions from the above link:

OS X
Code: Select all
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone -b SublimeText2 git://github.com/kuroir/SCSS.git


Windows
Code: Select all
cd %APPDATA%\Sublime Text 2\Packages
git clone -b SublimeText2 git://github.com/kuroir/SCSS.git
krisbulman
 
Posts: 5
Joined: Mon Aug 01, 2011 12:52 pm

Re: SCSS support

Postby Side Six on Thu Sep 08, 2011 4:04 am

@krisbulman

Thanks! Worked like a dream!
Side Six
 
Posts: 2
Joined: Thu Sep 08, 2011 4:00 am

Re: SCSS support

Postby eikaramba on Tue Sep 20, 2011 12:08 am

hey guys,

i have a little batch file on windows that helps me a lot and just wanted to share it to you, it is build on top of the git repository batch script file. With this script you are able to manage to have *.scss symlinks but to copy the compiled *.css files into your repository(normally this is a problem if you only have symlinks in your repository as mercurial doesn't "see" that the sources have changed")
So its useful in a symlinks repo environment
it also adds the option to choose if sass should compress the css


Code: Select all
cd /d %1
CHOICE /C JN /M compress?
if errorlevel 2 goto nocompress

SET option=--style compressed
GOTO decide
:nocompress
SET option=

:decide
IF %1=="YOUR REPO DIR PATH(THE ONE WITH THE SYMLINKS) with normal backslashes" (goto fileee) else (goto normal)

:fileee
SET input=THE PATH OF THE DIR YOUR ORIGINAL FILES !!!! Please replace all \ with / on windows
SET output=YOUR REPO DIR PATH(THE ONE WITH THE SYMLINKS)!!!!! Please replace all \ with / on windows
sass --watch %input%:%output% %option%
pause
:normal
sass --watch .:. %option%
pause


i don't know but maybe it helps someone, because for me it was hard to figure out that sass requires to replace the backslashes with slashes in order that you can define 2 different input/output folders. maybe a windows thing or so... don't know.

PS: The rest is just like in the GIT repo, just search this thread....ah ok here there is the url: https://github.com/nathansmith/sublime-text-haml-sass
eikaramba
 
Posts: 21
Joined: Thu Mar 10, 2011 1:06 am

New installation procedure

Postby rapcal on Mon Nov 21, 2011 1:10 am

On Mac OSX:

Code: Select all
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone -b SublimeText2 git://github.com/kuroir/SCSS.tmbundle.git SCSS


On Windows:

Code: Select all
cd %APPDATA%\Sublime Text 2\Packages
git clone -b SublimeText2 git://github.com/kuroir/SCSS.tmbundle.git SCSS


Source: https://github.com/kuroir/SCSS.tmbundle/tree/SublimeText2
rapcal
 
Posts: 1
Joined: Mon Nov 21, 2011 1:08 am

Re: SCSS support

Postby kuroir on Tue Nov 22, 2011 6:00 am

Hey,

Lead Developer of the SCSS Bundle.

Sorry about changing stuff so much there, looks like maybe I'll be staying with ST2 for some time.
kuroir
 
Posts: 71
Joined: Thu Sep 01, 2011 11:28 pm
Location: Mexico

Re: SCSS support

Postby alanfluff on Fri Mar 22, 2013 6:09 pm

Hi,

Summary
- - -
I have added SASS support as per the latest instructions and the result is that normal CSS autocomplete is sort of broken.


Detail
- - -
With a SASS document in Syntax CSS mode all CSS autocomplete is normal/good, for example type 'te' and 'text-decoration' (plus lots of others) is auto suggested.

With a SASS document in Syntax SASS:
type 'te' and 'text-decoration' (etc) isn't suggested
type 'tex' and it isn't
type 'tex' then Ctrl+Space and it isn't
type 'tex' then Space then BackSpace then Ctrl+Space and 'text-decoration' IS auto suggested

I've nearly worn out Google trying to find a fix for this.

Is there something I am missing? Thanks in advance for any help.

EDIT: Even more time Googling and I stumbled on this https://github.com/kuroir/SCSS.tmbundle ... blimeText2
It works and solves the problem.
alanfluff
 
Posts: 3
Joined: Thu Mar 21, 2013 11:10 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests