An extensible library to highlight (and comment) JSX syntax in the Monaco Editor using Babel. It exposes its AST, so you can add your own syntax-based or custom highlights.
// Instantiate the highlighter for each editor in the diffEditor instance
const monacoJSXHighlighter = new MonacoJSXHighlighter(
monaco, babel, traverse, monacoDiffEditor.getOriginalEditor() // original
);
const monacoJSXHighlighter = new MonacoJSXHighlighter(
monaco, babel, traverse, monacoDiffEditor.getModifiedEditor() // modified
);
Super easy, barely an inconvenience =P:
Live Demo =)