Comments should be -#
not /
since we don't want this code to be shown to the user
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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 the Packages/Rails
folder
3) Restart sublime
回答2:
You can change your RubyHaml comments preference.
Preferences > Browse Package > Rails > Ruby Haml Comments.tmPreferences
and edit TM_COMMENT_START
from \
to -#
Unfortunately this is limited to scope to <string>text.haml</string>
and doesn't use haml comment/uncomment consistently.
标签:
sublimetext2