Thursday, October 02, 2008

SASS jEdit Syntax Highlighting Mode

SASS jEdit Syntax Highlighting Mode

Files

catalog - jEdit SAMPLE catalog file

sass.xml - jEdit SASS mode file

haml.xml - jEdit HAML mode file from Wolfmans Howlings

What is this?

This two files provide syntax highlighting for HAML/SASS in jEdit.

What for?

Well, jEdit happens to be my favorite RoR editor, and I stumbled upon Wolfman's Howlings Post about a HAML syntax highlighting mode for jEdit.

This got me interested, and obviously googled to find a jEdit mode for SASS (CSS companion for HAML), but apparently there's none available, so I decided to write my own. This post is to share it with the world.

How to use it

Just drop the sass.xml file in your jEdit's mode directory (in Windows it's C:\Documents and Settings\YOUR USER NAME\.jEdit\modes, and in Linux it's ~/.jedit/modes), and modify your existing catalog file to include the line from the provided catalog file.

Thanks and Bye

As always, I hope this is useful for you people out there.

Gabriel Medina

UPDATE:

There is an existing SASS.xml file at HAML Google Group - Files Section, I tried it, but didn't like it much... So, I joined what I liked about that one, and merged it with mine. Use mine or HAML Google Group's one, Open Source is all about choice.

0 comments: