Article type: Architectural
Article name: Architectural - Editor - Monaco
Affected Software/module: Editor Module
Author:	Framez



Description:

We should definitely switch from CodeMirror code editing library/component to Monaco, as CodeMirror is terrible, especially on mobile.

Then we can implement some syntax highlighting. In the viewer that can be easy - we need the parsing action execute once for the highlighting.

But for a real-time highlighting - we will need to re-implement the Describe compiler in JS. Otherwise, we will hammer our C# AWS Lambda setup too much. Which is extremely doable, since we are using ANTLR for the Describe compiler - and ANTLR4 supports JavaScript, PHP, and few other languages. But it will be a bit of a hassle.

Realtime syntax highlighting using Monaco or CodeMirror



Back