You need to use the Mimetype to indicate the mode you want to use, in this case, I'm indicating the Perl Mimetype. Initialize and set your codemirror in the JS. Step 3 - Initialize and Display CodeMirror Var editor = omTextArea(document.getElementById('code'), TLDR: How to Use CodeMirror, in a Page or Less Step 1 - Load Basic Core LibrariesĪnd, if you like to have extra-bracket color matching, also load this: Ĭheck the /codemirror-5.62.0/mode/ dir to see what language matches the language you'll be coding in.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |