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 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.
本文标签: javascriptHow to change one keyword39s color in GeanyStack Overflow
版权声明:本文标题:javascript - How to change one keyword's color in Geany? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745173133a2646095.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论