Ace / Monaco: Custom syntax highlighter

I'm looking for a way to add a custom syntax highlighter to the Ace/Monaco editor.
@knolleary stated a long time ago:

Is there meanwhile an API or a hack to achieve this?

There is no official API so it would have to be a hack by accessing the built-in functions of the Monaco editor.

But, if we swap out the editor or Monaco changes its API your changes would fail.

Is it a completely custom syntax or an established syntax you require?

A bit of both: A custom template syntax to operate with css, html & javascript.

Do you have a working syntax highlighter already?

Well... why do you ask?
Are you going to spend time in creating one if it wasn't available? :wink:

No, but I may have included it along side the other highlighters in the node-red repository.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.