我如何让 HAML 注释在 Sublime text 2 中正常工作 [英] How do i get HAML comments to work correctly in Sublime text 2

查看:31
本文介绍了我如何让 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

这篇关于我如何让 HAML 注释在 Sublime text 2 中正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆