It doesn't look like there is (just grey code blocks), but perhaps I am missing a way to trigger it.
2 Answers
Use
<!-- language: lang-vb -->
Example
rem this is a comment
set here="is a string with spaces"
rem here are some keywords
call zulu
date zulu
do zulu
else zulu
erase zulu
exit zulu
for zulu
goto zulu
if zulu
in zulu
not zulu
-
1But why? It seems illogical. Can you provide an explanation in the answer? Jul 23, 2019 at 11:48
-
@P.Mort.-forgotClayShirky_q no DOS specific highlighter is available, but the VB one is similar– ZomboNov 13, 2021 at 17:07
You can try lang-dos
. It's a somewhat weak approach, but may be better than nothing:
@echo off
SET Var=Value
ECHO Var is now %Var%
"C:\Program Files\SomeCommand.exe" /?
IF NOT %ERRORLEVEL% EQU 0 ( EXIT /B 1 )
CALL OtherScript.cmd
REM etc.
<!-- language: lang-none -->
and be done with it...