我如何让 HAML 注释在 Sublime text 2 中正常工作

问题描述:

注释应该是 -# 而不是 / 因为我们不希望此代码显示给用户

Comments should be -# not / since we don't want this code to be shown to the user

找到解决方案:

1) 安装 textmate 包https://github.com/phuibonhoa/handcrafted-haml-textmate-bundle

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 克隆 git://github.com/phibonhoa/handcrafted-haml-textmate-bundle.git Haml.tmbundle

在包文件夹中

2) 删除 Packages/Rails 文件夹中所有以 Ruby Haml 开头的文件

2) Delete all files starting with Ruby Haml in the Packages/Rails folder

3) 重启 sublime

3) Restart sublime