Batch Mode
Batch Mode
>
<!-- Batch File syntax highlighting for DigitalRune TextEditor. Created by Cyote
k (http://cyotek.com/) -->
<SyntaxDefinition name="Batch" extensions="*.bat;*.cmd">
<Environment>
<Default color="#000000" bgcolor="#ffffff" />
</Environment>
<RuleSets>
<RuleSet ignorecase="true">
<!-- Adding @ as a delimiter means the "ECHO" in "@ECHO OFF" will be highl
ighted. -->
<Delimiters>@:</Delimiters>
<!-- REM comment -->
<Span name="LineComment" bold="false" italic="false" color="#008000" stopa
teol="true">
<Begin>REM</Begin>
</Span>
<!-- :: style comment -->
<Span name="LineComment2" bold="false" italic="false" color="#008000" stop
ateol="true">
<Begin>::</Begin>
</Span>
<!-- label -->
<Span name="Label" bold="false" italic="false" color="#FF0000" bgcolor="#F
FFF80" stopateol="true">
<Begin startofline="true">:</Begin>
</Span>
<!-- Environment Variable -->
<Span name="Variable" bold="false" italic="false" color="#FF8000" bgcolor=
"#FCFFF0" stopateol="true">
<Begin>%</Begin>
<End>%</End>
</Span>
<!-- Programs -->
<!-- The idea here is the first word on a line that isn't a keyword is a p
rogram.
Doesn't work with the default TextEditorControl though. -->
<!--<Span name="Program" bold="false" italic="true" color="Red" bgcolor="#
FCFFF0" stopateol="true">
<Begin startofline="true" singleword="true"></Begin>
<End> </End>
</Span>-->
<!-- Operators -->
<KeyWords name="Punctuation" bold="false" italic="false" color="#FF0000">
<Key word="+" />
<Key word="-" />
<Key word="*" />
<Key word="<" />