This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Update Language Support wiki page with examples #11573
Open
Description
The Language Support page, especially the Defining a new language part, could use some improvements.
The aforementioned section does not contain any examples of how exactly to "load it using require(), register it with CodeMirror using CodeMirror.defineMode(), then call LanguageManager.defineLanguage() as above".
Thus, I'd suggest to add some examples here (for both the CodeMirror.defineMode()
and CodeMirror.defineSimpleMode()
methods of doing it).
Also, I'm unsure if we still need the Notes on "language" support (as of Sprint 21) section on this user-facing wiki page.