Overview#
I had the opportunity to highlight LaTeX in Monaco Editor, so here are my notes.
This is a follow-up to the following article that targeted Ace Editor.
I hope this serves as a useful reference.
Screenshot#

Demo Site#
https://nakamura196.github.io/ace_latex/monaco/
Repository#
https://github.com/nakamura196/ace_latex/
Source Code#
The following page was helpful for configuring custom languages.
https://microsoft.github.io/monaco-editor/playground.html?source=v0.40.0#example-extending-language-services-custom-languages
Also, using ChatGPT was convenient for creating the rules.
I hope this serves as a useful reference for others.