Created
October 11, 2022 22:37
-
-
Save BrandonXLF/c7ac527e8f620f88962e2cbeff9f5d3e to your computer and use it in GitHub Desktop.
Set Ace Editor max token count.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let editor = ace.edit(document.getElementById('editor')); | |
// ... | |
editor.session.$mode.getTokenizer().$setMaxTokenCount(/* NEW MAX TOKEN COUNT */ 10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment