Friday, July 27, 2018

Ace editor coloring words

Leave a Comment

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?

1 Answers

Answers 1

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?

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment