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 badges2 Answers
Reset to default 8In 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条)