mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[Monaco] Use syntax highlighting for .srt (#35651)
* [FilePreview] Use syntax highlighting for .srt * Change customTokenColors to customTokenThemeRules * Ignore text on the same line as a timestamp * Update tokenization rules
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
<script src="http://PowerToysLocalMonaco/monacoSRC/min/vs/loader.js"></script>
|
||||
<script type="module">
|
||||
import { registerAdditionalLanguages } from 'http://PowerToysLocalMonaco/monacoSpecialLanguages.js';
|
||||
import { customTokenColors } from 'http://PowerToysLocalMonaco/customTokenColors.js';
|
||||
import { customTokenThemeRules } from 'http://PowerToysLocalMonaco/customTokenThemeRules.js';
|
||||
require.config({ paths: { vs: 'http://PowerToysLocalMonaco/monacoSRC/min/vs' } });
|
||||
require(['vs/editor/editor.main'], async function () {
|
||||
await registerAdditionalLanguages(monaco)
|
||||
|
||||
Reference in New Issue
Block a user