Home Download Buy Blog Forum Support

How do I customize Haml comments?

How do I customize Haml comments?

Postby railsjedi on Thu May 31, 2012 10:40 am

No matter what I do, I can't seem to change the Ruby Haml comment character to "-#" instead of "/"

"/" inserts an HTML comment which is output to the page. Not usually what I want.

Any help here? Every time I delete the ~/Library/Application Support/Sublime Text 2/Packages/Haml it reappears later. Where is it coming from?

When I open Comments.tmpreferences, it looks like it has the correct syntax for the comments. Here's a zip of the folder http://cl.ly/3U3S1R0L1y2l0W23310N

Thanks
railsjedi
 
Posts: 1
Joined: Fri May 25, 2012 7:51 am

Re: How do I customize Haml comments?

Postby kakubei on Fri Jul 06, 2012 11:03 am

+1 for me on this one. I have the same problem. If you put the cursor in the middle of the HAML line (as opposed to on either end) you get the Ruby comment:

#

not the HAML comment:

-#

Putting the cursor on either end gets you the '/' type comment.
kakubei
 
Posts: 58
Joined: Sun Sep 25, 2011 9:19 am

Re: How do I customize Haml comments?

Postby blakink on Thu Aug 30, 2012 5:57 pm

I'm also interested by this feature..
blakink
 
Posts: 2
Joined: Fri Aug 03, 2012 8:16 am

Re: How do I customize Haml comments?

Postby george on Fri Sep 07, 2012 3:40 pm

If you are editing a haml file inside a rails project then you need to edit this file instead
~/Library/Application Support/Sublime Text 2/Packages/Rails/Ruby Haml Comments.tmPreferences

and replace "/ " with "-# "
george
 
Posts: 1
Joined: Fri Sep 07, 2012 3:38 pm

Re: How do I customize Haml comments?

Postby kakubei on Sat Sep 15, 2012 7:57 am

george wrote:If you are editing a haml file inside a rails project then you need to edit this file instead
~/Library/Application Support/Sublime Text 2/Packages/Rails/Ruby Haml Comments.tmPreferences

and replace "/ " with "-# "


I found the file, but edited it and it's still giving me the
Code: Select all
/
. Could there be anything else overriding this?

I also have a HAML folder inside the Packages folder where I've edited the comment but it doesn't work.
kakubei
 
Posts: 58
Joined: Sun Sep 25, 2011 9:19 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 24 guests