Leo Bernard
14 October 2024
Embedding JavaScript Code Inside JSON Properties with Monaco Editor

This page describes how to set up the Monaco Editor to work with JSON files that have JavaScript contained in them, namely in the "eval" properties. It draws attention to the difficulties of combining several languages into one file and provides methods for seamless syntax highlighting through the use of custom tokenization. Auto-completion for both JavaScript and JSON can help developers be more productive.