Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ace editor coloring words

I'm trying to colorize some specific words in the Ace editor (for example I want the word 'Hello' to be colored in red). I tried working with their 'highlight rules' (https://ace.c9.io/#nav=higlighter) but it doesn't seem to work.

I'm working with react and javascript by the way.

Can anyone suggest a solution or example?

like image 291
Allensy Avatar asked Jun 19 '18 08:06

Allensy


1 Answers

Ace doesn't provide this feature by default, but you can using 'custom highlight rules' in ace editor.

I know that they have released this feature for customizing various new languages.

Ref:

https://cloud9-sdk.readme.io/docs/highlighting-rules

Related Stack Answer:

Want to highlight/change color of certain words in Ace Editor?

like image 200
2 revs, 2 users 93% Avatar answered Sep 23 '22 00:09

2 revs, 2 users 93%