如何更改NetBeans中的HAML标签的颜色? [英] How to change color of HAML tags in NetBeans?

查看:334
本文介绍了如何更改NetBeans中的HAML标签的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在NetBeans 6.8中使用Aloha主题,除了HAML文件中的这些蓝色标签,一切看起来都很酷,这是不可读的。如何找到可以更改此蓝色颜色的地方?

I use Aloha theme in NetBeans 6.8, everything looks cool except these blue tags in HAML files, which are unreadable. How to find a place where this blue color could be changed?

我使用的HAML插件似乎不受支持,缺少功能

P.S. I use that HAML plugin which seems to be unsupported and lacks features

屏幕截图: http://img.leprosorium.com/846904 (对不起,新用户无法嵌入图片)

Screenshot: http://img.leprosorium.com/846904 (sorry, new users can't embed images)

推荐答案

Sad说HAML插件似乎不受支持,缺少功能,是唯一的Haml插件是netbeans。我不知道是否有源代码为它在那里(从来没有看过)。如果你看,颜色都定义在一个名为haml.nbs的文件中。你可以通过从你下载的nbm中提取org.netbeans.haml.jar,然后从中提取haml.nbs来找到它。 Ubuntu的文件滚动器会为你做这个快乐。
文件的内容如下:

Sad to say "that HAML plugin which seems to be unsupported and lacks features", is the only Haml plugin there is for netbeans. I don't know if there is source code for it out there either (never looked). If you look, the colours are all defined in a file called haml.nbs. You can find it by extracting the org.netbeans.haml.jar from the nbm you downloaded and then extracting the haml.nbs from that. Ubuntu's file-roller will cheerfully do this for you. The contents of the file look like this:

COLOR:declaration: {
default_coloring: "comment";
foreground_color: "gray";
}
...

价值观,以适应你的需要,并把它放在一起。它应该工作。
当然,如果有来源的东西,会更好。

With a little fiddling you could probably change those values to suit your needs and put it back together. It should work. Of course if there was source for the darn thing that would be even better.

这篇关于如何更改NetBeans中的HAML标签的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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