From 9a5ea59f0b44a249bb3a0978f7586d68bd193d51 Mon Sep 17 00:00:00 2001 From: hddhyq Date: Wed, 17 Apr 2024 22:13:20 +0800 Subject: [PATCH] docs: Update Monaco syntax highlighting configuration --- docs/packages/monaco.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/packages/monaco.md b/docs/packages/monaco.md index 252612d5..2641cd27 100644 --- a/docs/packages/monaco.md +++ b/docs/packages/monaco.md @@ -37,12 +37,8 @@ monaco.languages.register({ id: 'vue' }) monaco.languages.register({ id: 'typescript' }) monaco.languages.register({ id: 'javascript' }) -// Register the themes from Shiki, and provide syntax highlighting for Monaco. // [!code highlight:6] -// Custom token parsing configuration can be defined. -shikiToMonaco(highlighter, monaco, { - tokenizeMaxLineLength: 20000, - tokenizeTimeLimit: 500 -}) +// Register the themes from Shiki, and provide syntax highlighting for Monaco. // [!code highlight:2] +shikiToMonaco(highlighter, monaco) // Create the editor const editor = monaco.editor.create(document.getElementById('container'), {