fix(editor): hide UTF-8 BOM and lighten replace buttons

This commit is contained in:
2026-11-06 10:58:23 +08:00
parent a206ce8450
commit 171fbaf59d
3 changed files with 7 additions and 2 deletions

View File

@@ -708,6 +708,9 @@
indentUnit: 2,
tabSize: 2,
indentWithTabs: false,
// Keep the file's UTF-8 BOM invisible: CM otherwise draws it as a
// red special-character dot. The value still round-trips on save.
specialChars: /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufff9-\ufffc]/g,
viewportMargin: 10,
extraKeys: {
'Tab': function(instance) {