Customize TextEditor Highlight
Posted
#1
(In Topic #1299)
Regular

Keywords not recognized (for instance):
Python: def
PHP: foreach, $dollar variables etc
Posted
Guru

This is the javascript highlight file…
comp/src/gb.highlight/highlight/javascript.highlight · master · Gambas / gambas · GitLab
Read this, there are full instructions on how to use…
/doc/highlight - Gambas Documentation
i guess you could copy the javascript file into your project and modify it , then register it as normal , "I assume" that would override the built-in javascript highlight.
Or just rename it to say MyJavaScript and make js files use MyJavascript instead.
Posted
Regular

Thanks
Posted
Regular

Posted
Guru

sergioabreu said
Which folder in the project should be put the .highlight files in ?
I do not know for sure , I have never used custom highlighting , .conf i think
Posted
Guru

BruceSteers said
sergioabreu said
Which folder in the project should be put the .highlight files in ?
I do not know for sure , I have never used custom highlighting , .conf i think
although i think that is for making the IDE support the syntax.
I think you can put your highlight files anywhere but you "Register" them using the methods from the instructions on program load.
1 guest and 0 members have just viewed this.


