Casting no shade on the venerable WinBatch Studio IDE...
For those who use the Microsoft VSCode editor/IDE, here is a language extension for WBT files in VSCode. It took a while to cobble it together, and it's not quite perfect, but it works. Say hello to: code folding, multiple cursor editing, diffing files (i.e. "compare"), highlighting all instances of selected text, etc.
How To Install: installation is Very simple.
1. Extract the zipfile and copy the included WBT folder (with all contents) to this location:
C:\Users\[your user account]\.vscode\extensions
2. Restart VSCode. Done.
The "not-quite perfect" part of this extension is that each capitalization option for each keyword is included, so the pop-up code-completion suggestions will include each of those - i.e. if you type "end" up will pop the suggestions endif, endIf, EndIf, ENDIF, endwhile, endWhile, EndWhile, ENDWHILE - really quite tedious, and basically rendering VSCode's quickSuggestions useless. Therefore, you might also want to disable code-completion-suggestions ("intellisense"?) for wbt files only by editing the settings.json file and adding this block:
"[wbt]":{
"editor.quickSuggestions": false,
"editor.wordBasedSuggestions": false,
"editor.acceptSuggestionOnEnter": "off",
},
FWIW, the "meat" of the language extension is found in this file:
WBT\syntaxes\wbt.tmLanguage.json
That's where you'll find each keyword / operator / etc itemized and colorized.
If anyone takes this, runs with it, and improves it... it would be great if you could upload your revised extension here.