Comments should be -#
not /
since we don't want this code to be shown to the user
标签:
sublimetext2
相关问题
- How to run code in Sublime text 2 python
- Why is Sublime Package Control not working?
- C++ 11 code compiles with `clang++`, but not with
- White text in Sublime Text
- mongo --shell file.js and “use” statement
相关文章
- trouble getting sublime to execute with linux term
-
Perl with Sublime Text 2:
not working - Show info about current character in status bar in
- How can a Sublime Text build system access the con
- In Sublime Text 3, how to have shortcuts for “Buil
- Use vim syntax definition with sublime-text2
- Does Sublime Text support live editing of CSS/SASS
- Move cursor on middle button paste in Sublime Text
Found the solution:
1) Install the textmate bundle https://github.com/phuibonhoa/handcrafted-haml-textmate-bundle
I think this can be done via the package manager, i just used
git clone git://github.com/phuibonhoa/handcrafted-haml-textmate-bundle.git Haml.tmbundle
in the packages folder
2) Delete all files starting with
Ruby Haml
in thePackages/Rails
folder3) Restart sublime
You can change your RubyHaml comments preference.
Preferences > Browse Package > Rails > Ruby Haml Comments.tmPreferences
and editTM_COMMENT_START
from\
to-#
Unfortunately this is limited to scope to
<string>text.haml</string>
and doesn't use haml comment/uncomment consistently.