mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
.bat and .cmd files were plain text: no highlighting, no comment toggling and no Run. Batch is now a built-in language (languages/bat.toml, line comment @REM as in VS Code) with a CodeMirror stream mode for keywords, labels, %VAR% / %%i / !VAR! variables, strings and :: / REM comments. Comment toggling always separates a word-like token (REM) from the code. On Windows hosts the editor and project-view Run use cmd.exe /c <file> in the file's directory; other hosts don't offer it. 未在 Windows 实机验证运行。 Fixes #236
7 lines
142 B
TOML
7 lines
142 B
TOML
id = "bat"
|
|
name = "Batch"
|
|
extensions = ["bat", "cmd"]
|
|
line-comment = "@REM"
|
|
indent = { tab-size = 4, insert-spaces = true }
|
|
ui-mode = "Batch"
|