feat: txt/tsx/css等全部文本开编辑模式 + 代码语法着色(highlight.js GitHub Dark配色)

This commit is contained in:
Aisland
2026-08-18 00:50:16 +08:00
parent 20f34fecbf
commit 12cc353964
6 changed files with 106 additions and 35 deletions
+11
View File
@@ -10,6 +10,7 @@
"license": "MIT",
"devDependencies": {
"esbuild": "^0.25.0",
"highlight.js": "^11.12.0",
"markdown-it": "^15.0.0",
"xterm": "^5.3.0"
},
@@ -544,6 +545,16 @@
"@esbuild/win32-x64": "0.25.12"
}
},
"node_modules/highlight.js": {
"version": "11.12.0",
"resolved": "https://registry.npmmirror.com/highlight.js/-/highlight.js-11.12.0.tgz",
"integrity": "sha512-nbfWpyRMcMrPMmDwJB+dhX/eiaPKtc2RB+0QZskqJ3WjRA/FDS0e9hZrx8EC/lbEv8gXy98FcDbNa/dspAaJMg==",
"dev": true,
"license": "BSD-3-Clause",
"engines": {
"node": ">=12.0.0"
}
},
"node_modules/linkify-it": {
"version": "6.1.0",
"resolved": "https://registry.npmmirror.com/linkify-it/-/linkify-it-6.1.0.tgz",