javascript - How to change one keyword's color in Geany? - Stack Overflow

I use Geany to edit JavaScript files. I have made it highlight "self" as a keyword symply by

I use Geany to edit JavaScript files. I have made it highlight "self" as a keyword symply by adding it to filetypes.javascript file. But i need to make it highlighth "self" word in another color. How can i do this?

I use Geany to edit JavaScript files. I have made it highlight "self" as a keyword symply by adding it to filetypes.javascript file. But i need to make it highlighth "self" word in another color. How can i do this?

Share Improve this question asked Jun 8, 2011 at 10:12 jsmarkusjsmarkus 1,5021 gold badge17 silver badges21 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

In Linux, copy the file /usr/share/geany/filedefs/filetypes.javascript to ~/.config/geany/filedefs/filetypes.javascript and edit this copy.

In the section [keywords] add:

secondary=self

Change the colour in section [styling] by editing word2, e.g.:

word2=0x00cccc;0xffffff;true;false

This will make it cyan and bold.

You will have to edit your filetypes.javascript file (in folder $/.config/.geany, if you're under linux). But I am not 100% sure you can.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745173134a4615048.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信