How do i get HAML comments to work correctly in Sublime text 2

可紊 提交于 2019-12-21 12:43:16

问题


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.



来源:https://stackoverflow.com/questions/12267389/how-do-i-get-haml-comments-to-work-correctly-in-sublime-text-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!