admin管理员组

文章数量:1415100

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.

本文标签: javascriptHow to change one keyword39s color in GeanyStack Overflow