Discussion on syntax-highlighting

212 views
Skip to first unread message

Mike Ferrier

unread,
Dec 27, 2006, 1:43:16 PM12/27/06
to Haml
Dead link? 404'd Dec 27/06

Mike Ferrier

unread,
Dec 27, 2006, 1:57:56 PM12/27/06
to Haml
I wasn't sure where google groups was gonna post this... I'm referring
to http://groups-beta.google.com/group/haml/web/syntax-highlighting ...
specifically the link to the jEdit haml.xml syntax highlighting file.
The link to the .xml works in the Files section. Not sure of the
"proper" way to link to it, but the link is currently a 404.

Mike

Nex3

unread,
Dec 27, 2006, 2:04:12 PM12/27/06
to Haml
Thanks, a new version of the JEdit file came out and I forgot to update
this link. It should be working now.

hampton c

unread,
Jan 8, 2007, 10:19:23 AM1/8/07
to Haml
I updated the Syntax Highlighting page in our "pages" section to have
the alpha textmate highlighting stuff as posted by Cameron.

Click on
http://groups-beta.google.com/group/haml/web/syntax-highlighting - or
copy & paste it into your browser's address bar if that doesn't work.

Kevin Ballard

unread,
Jan 21, 2007, 2:44:11 PM1/21/07
to Haml
I just edited the Syntax Highlighting page to reflect the fact that a
TextMate language grammar now exists in the official Bundles repository.

Nathan Weizenbaum

unread,
Jan 21, 2007, 4:47:26 PM1/21/07
to ha...@googlegroups.com
Good idea. I went ahead and uploaded a copy of the syntax highlighting
to the group.

- Nathan

jens.k...@googlemail.com

unread,
Jan 21, 2007, 6:00:21 PM1/21/07
to Haml
Hi!

Just wanted to let you know that I've uploaded a (still very basic) vim
syntax highlighting config file.

I really just started playing around with Haml and will work on the
highlighting as I dig into it further :-)

Kevin Ballard

unread,
Jan 22, 2007, 12:52:44 AM1/22/07
to Haml
I don't think that's a good idea. The TextMate language grammar is not
yet stabilized. For example, I just checked in a workaround for a
problem highlighting comments inside ruby contexts in Haml.

The Syntax Highlighting page should probably just point to the
instructions for fetching bundles from the repository (in TextMate FAQ)
rather than bundling an out-of-date copy of the bundle.

Nathan Weizenbaum

unread,
Jan 22, 2007, 1:01:39 AM1/22/07
to ha...@googlegroups.com
Alright, I'll redirect the link.

Eric

unread,
Jan 30, 2007, 1:47:15 AM1/30/07
to Haml
I just wrote a syntax highlighting mode for Komodo and posted
a screenshot to the Files section so anyone who's interested
can see the results. Currently UDL, the syntax description language,
doesn't have a way of indicating changes in indentation. I need to
add it for Python as well as Haml to make that happen.

Tomorrow I'll post a xpi and the source to the ActiveState support
site.

If a commercial screenshot doesn't belong in the Files section, I have
no
problem if it's removed. I don't want to post a xpi until I've tested
it on
another machine.

Arik Jones

unread,
Jun 27, 2007, 11:38:11 PM6/27/07
to Haml
I am currently working on syntax highlight for textmate... Really all
I am doing is extracting the scopes and releasing them for others to
do their own colorizing.

Sean, Tan Li Yang

unread,
Jun 28, 2007, 3:44:22 AM6/28/07
to ha...@googlegroups.com
Hi,

I'm not sure whether this has been covered before, but I'm wondering whether we can make SASS support AssetTagHelper. In my case, I needed
background-image: url(../images/background.jpg);
to become
background-image: url(../images/background.jpg?1234567);
Is there a way to do that in SASS, if not I guess I have to fall back on generating the css using rhtml.

Thanks for your help in advance!

Sean

Nathan Weizenbaum

unread,
Jun 28, 2007, 4:45:38 AM6/28/07
to ha...@googlegroups.com
Theoretically, it would be possible. We're thinking of adding support
for functions in SassScript for version 2.0, and this could be done as
one of those. We could do something like

background-image= image(background.jpg)

which would produce

background-image: url(../images/background.jpg?1234567);

in development and

background-image: url(../images/background.jpg);

in production. Anyone else have any thoughts?

- Nathan

Sean, Tan Li Yang

unread,
Jun 28, 2007, 11:13:55 AM6/28/07
to ha...@googlegroups.com
In fact, I'm trying to keep the appending timestamp on. The main objective is to achieve url versioning as described in this article.
http://blog.dannyburkes.com/2006/11/2/versioned-urls-for-rails/
I'm actually trying out their plugin on url versioning currently and see if it works as claimed. It would be important to tag the generation of the timestamp to AssetTagHelper such that there is a centralized place to modify the format of the version timestamp.

--
Sean

Frederick

unread,
Jul 18, 2007, 5:33:51 AM7/18/07
to Haml
Is there a *sass.vim* anywhere? No one's holding out on us? Maybe I'll
make one myself...

Eugene Korbut

unread,
Jul 19, 2007, 2:16:33 AM7/19/07
to ha...@googlegroups.com
On 7/18/07, Frederick <bran...@gmail.com> wrote:
>
> Is there a *sass.vim* anywhere? No one's holding out on us? Maybe I'll
> make one myself...

I have one. It's very simple, but works well for me.
--
Eugene Korbut

sass.vim

Burke Libbey

unread,
Jul 27, 2007, 10:51:04 AM7/27/07
to Haml
Whoah. There's a haml-mode for emacs.... I'm uninstalling my textmate
clone. Thanks, whoever wrote it, you made my week. :)

Nathan Weizenbaum

unread,
Jul 27, 2007, 10:58:22 AM7/27/07
to ha...@googlegroups.com
That would be me, originally, but Dmitry Galinsky and Dima did all the
font-lock stuff.

- Nathan

dmitry.il...@gmail.com

unread,
Aug 4, 2007, 9:01:34 AM8/4/07
to Haml
Sass syntax highlighting file for Vim: http://www.vim.org/scripts/script.php?script_id=1979

Elliot Winkler

unread,
Aug 24, 2007, 10:15:46 PM8/24/07
to Haml
Just wanted to post and say that I've put together a Sass mode file
for jEdit to join the Haml one posted already. Don't know where to put
it though...

schmeic

unread,
Sep 19, 2007, 9:43:40 PM9/19/07
to Haml
Are there any plans to add font-lock stuff to the emacs sass-mode? If
not, maybe I'll give it a try. I don't really know lisp, but the haml-
mode.el file looks like a great example...

Nathan Weizenbaum

unread,
Sep 19, 2007, 10:19:03 PM9/19/07
to ha...@googlegroups.com
Not really. Go ahead; it'd definitely be appreciated.

- Nathan

Message has been deleted

Max Kostovetski

unread,
Sep 30, 2007, 10:32:06 AM9/30/07
to Haml
I've tried to use Eclipse+RadRails plugin
(net.lucky_dip.hamleditor_0.0.1.jar), but found it uncomfortable in
some cases, specifically inability to set font attributes (bold/
italic/...) for lexems is very annoying.

I've uploaded a very simple Aptana generic lexer rules and my own
coloring profiles for HAML and SASS.
Links:
http://haml.googlegroups.com/web/haml_lexer.lxr
http://haml.googlegroups.com/web/haml.col
http://haml.googlegroups.com/web/sass_lexer.lxr
http://haml.googlegroups.com/web/sass.col

Usage:
- open Eclipse preferences
- select Aptana -> Editors -> Generic text
- add new extension (*.haml for HAML; *.sass for SASS)
- add haml_lexer.lxr (sass_lexer.lxr) as "Lexer File"
- [optional] import colorization profile "haml.col" (sass.col)

martinisoft

unread,
Sep 30, 2007, 11:52:18 PM9/30/07
to Haml
Please update the TextMate link to the renamed bundle on the TextMate
subversion:
http://macromates.com/svn/Bundles/trunk/Bundles/Ruby%20Haml.tmbundle/

Does not include scoping for SASS yet, but basic support for HAML
markup.

jcs

unread,
Oct 7, 2007, 7:30:41 PM10/7/07
to Haml
i threw together rudimentary haml highlighting for kde (kdevelop/
kate):
http://www.wrong.button.com/code/haml.xml

caveats:
* code folding only works if i don't include any ruby highlighting,
code folding loses
* the LineContinue element is hardcoded to work with \ so it'll be
tricky to get highlight to follow haml's | delimited continuation

Mislav Marohnić

unread,
Oct 8, 2007, 3:53:37 AM10/8/07
to ha...@googlegroups.com
Dmitry,

This vim file doesn't work for me. It colors the whole document the same (gvim7.1 on Ubuntu). This is true for every document I have tried to apply it on, from small to big ones.

Dylan Bruzenak

unread,
Oct 15, 2007, 10:05:26 AM10/15/07
to Haml
I've just completed early Netbeans support for Haml/Sass. You can get
the bits at http://mediacast.sun.com/details.jsp?id=3759 until I find
a more permanent home for it.

Please give it a try; kick the tires and let me know what comes
crawling out. Two things that I know are broken for the time being:

-filter highlighting;
-multi-line sass comments are detected only as single line comments

Enjoy!

pimpmaster

unread,
Oct 17, 2007, 1:07:45 PM10/17/07
to Haml
Does anyone know who is maintaining the Textmate bundle?

It works very well but does not support the following Haml convention

%p== Here is an #{@interpolated} string

It treats everything after the # as a comment.

Moritz....@googlemail.com

unread,
Nov 9, 2007, 5:41:21 AM11/9/07
to Haml
The Eclipse +RadRails Plugin generates errors in new Aptana Studio.
Probably because they changed many things in RadRails with this
release.
Thanks to anybody who will solve this problem.

Brad Wilson

unread,
Nov 9, 2007, 9:21:27 AM11/9/07
to ha...@googlegroups.com
I've done that in the past, but I'm not using Aptana any more, so I
think it's time to hand over the code.

I'll send a link to the latest code tomorrow (it's late at night here
at the moment) and I'm happy to help anybody who needs to adapt this
stuff - I just can't spare the time to maintain something I'm not
using unfortunately.

B

Reply all
Reply to author
Forward
0 new messages