Code
<RuleSet>
<Span color="Comment" begin="//" />
<Span color="Comment" multiline="true" begin="/\*" end="\*/" />
<Span color="String">
<Begin>"</Begin>
<End>"</End>
<RuleSet>
<Span begin="\" end="." />
</RuleSet>
</Span>
<Span color="Char">
<Begin>'</Begin>
<End>'</End>
<RuleSet>
<Span begin="\" end="." />
</RuleSet>
</Span>
<Keywords foreground="#4169e1" fontWeight="bold"> <!-- Initialisers -->
<Word>enum</Word>
<Word>forward</Word>
<Word>public</Word>
<Word>new</Word>
<Word>native</Word>
<Word>operator</Word>
<Word>stock</Word>
</Keywords>
<Keywords fontWeight="bold" foreground="#80176B"> <!-- Direktiven -->
<Word>#define</Word>
<Word>#pragma</Word>
<Word>#include</Word>
<Word>#tryinclude</Word>
<Word>#if</Word>
<Word>#else</Word>
<Word>#elseif</Word>
<Word>#endif</Word>
<Word>#emit</Word>
<Word>#undef</Word>
<Word>#endscript</Word>
<Word>#endinput</Word>
<Word>#error</Word>
<Word>#assert</Word>
<Word>defined</Word>
</Keywords>
<Keywords fontWeight="bold" foreground="#0000ff"> <!-- Statements -->
<Word>assert</Word>
<Word>break</Word>
<Word>case</Word>
<Word>continue</Word>
<Word>default</Word>
<Word>do</Word>
<Word>else</Word>
<Word>exit</Word>
<Word>for</Word>
<Word>goto</Word>
<Word>if</Word>
<Word>return</Word>
<Word>sleep</Word>
<Word>state</Word>
<Word>switch</Word>
<Word>while</Word>
</Keywords>
<Keywords foreground="#990000"> <!-- Modifierzer -->
<Word>const</Word>
<Word>static</Word>
</Keywords>
<Keywords foreground="#009999"> <!-- Tags -->
<Word>bool:</Word>
<Word>Float:</Word>
<Word>DB:</Word>
</Keywords>
<Keywords foreground="#a0522d"> <!-- OPeratoren -->
<Word>char</Word>
<Word>sizeof</Word>
<Word>tagof</Word>
</Keywords>
<Keywords foreground="#0000fe"> <!-- bools -->
<Word>false</Word>
<Word>true</Word>
</Keywords>
<Rule foreground="#ffa500">
\b0[xX][0-9a-fA-F]+ # hex number
| \b
( \d+(\.[0-9]+)? #number with optional floating point
| \.[0-9]+ #or just starting with floating point
)
([eE][+-]?[0-9]+)? # optional exponent
</Rule>
</RuleSet>
Alles anzeigen
Direkt aus PawnStar.
Hoffe du kannst damit was anfangen^^