home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
con2v766.zip
/
colore01.zip
/
includes
/
scripts
/
tex.hrc
< prev
next >
Wrap
Text File
|
2000-03-03
|
4KB
|
95 lines
<!--
TeX Defs
With help of:
Vasily Bublik <bublik@itam.nsc.ru>
Sergei Remizov <remizov@mail.cplire.ru>
Mike Golub <golub@aha.ru>
-->
<Define Name="TFormula" Value="dInserts">
<Define Name="TFormula1" Value="LtCyan/bkBlack">
<Define Name="TComment" Value="dComments">
<Define Name="TSymb" Value="dStrings">
<Define Name="TSymb1" Value="Yellow">
<Define Name="TWord" Value="Yellow">
<Define Name="TWord1" Value="Yellow">
<Define Name="TBrk" Value="LtGreen">
<Define Name="TNumb" Value="dNumbers">
<Define Name="TBracket" Value="LtRed">
<Define Name="TBracket1" Value="LtRed">
<Define Name="TError" Value="dError">
<Define Name="TLargeBracket" Value="LtMagenta">
<Scheme Name="Tex_Symbols">
<KeyWords MatchCase="True" Color="TSymb">
<Symb Name="\"><Symb Name="#"><Symb Name="/" Color="TWord">
<Symb Name="&"><Symb Name="{"><Symb Name="}">
<Symb Name="_"><Symb Name="^"><Symb Name="~">
</KeyWords>
</Scheme>
<scheme Name="Tex_eqn">
<!-- cail: nothing difficult :)) -->
<Block start="/(\\(begin)\{((equation)|(eqnarray))\})/" end="/( \\(end) \{((equation)|(eqnarray))\} )/x"
scheme="Tex_Formula" Color0="TFormula"
color1="TSymb" color2="TWord" color3="TBracket"
color6="TSymb" color7="TWord" color8="TBracket">
</scheme>
<Scheme Name="Tex_quoters">
<!-- quoted -->
<RegExp Start="/(\\)([\w@]+)/" Color0="TSymb" Color1="TWord" Prior="Low">
<!-- \% is not a comment! \$ is not a math shift! -->
<RegExp Start="/(\\\$)/" Color0="TSymb">
<RegExp Start="/(\\\%)/" Color0="TSymb">
<!-- Highlight Russian letters? -->
<RegExp Start="/([Ç-ƒá-∩≡±]+)/" Color0="Red">
<!-- comment -->
<RegExp Start="/(\%.*$)/" Color0="TComment">
<!-- AMS-TeX block comment -->
<Block Start="/(^\\comment.*$)/" End="/(^\\endcomment.*$)/"
Scheme="Comment" Color0="TComment">
<!-- numbers -->
<RegExp Start="/\c(\-?\d*\.?\d+)/" Color0="TNumb">
<RegExp Start='/(\\) ( [ \{\}\,\:\;\!\\\|\"\]\- ] )/x' Color0="TSymb" Color1="TWord">
<RegExp Start="/(\\) ([\'\/])/x" Color0="TSymb" Color1="TWord">
<!-- error -->
<RegExp Start="/(\\)/" Color0="TError" Prior="Low">
</Scheme>
<scheme Name="Tex_Formula">
<include Scheme="Tex_eqn">
<block
Start="/(\\) (left) ( [\s\t]* [\,\|\{\}\(\)\[\]] ) | ( [\s\t]+ [\,\|\{\}\(\)\[\]] {0,1} )/x"
End="/ (\\) (right) ( [\s\t]* [\,\|\{\}\(\)\[\]] {0,1} ) /x"
Scheme="Tex_Formula" Color0="TLargeBracket" Color1="TSymb" Color2="TLargeBracket"
Color3="TBrk" Color4="TWord" Color5="TSymb" Color6="TLargeBracket" Color7="TBrk">
<include Scheme="Tex_quoters">
<!-- cail: this (\\end)?~4 cracks collision with \end{equation} -->
<block Start="/(\\end)?~4(\{)/" End="/(\})/" Scheme="Tex_Formula" Color0="TBracket" Color2="TSymb" Color3="TSymb">
<block Start="/(\[)/" End="/(\])/" Scheme="Tex" Color0="TBracket" Color1="TSymb" Color2="TSymb">
<include Scheme="Tex_Symbols">
<KeyWords MatchCase="True" Color="TSymb">
<Symb Name="$" Color="TError">
</KeyWords>
</scheme>
<Scheme Name="Tex">
<Include Scheme="Tex_eqn">
<Include Scheme="Tex_quoters">
<Block start="/(\$\$)/" end="/(\$\$)/" Scheme="Tex_Formula" Color0="TFormula" Color1="TSymb" Color2="TSymb">
<Block start="/(\$)/" end="/(\$)/" Scheme="Tex_Formula" Color0="TFormula" Color1="TSymb" Color2="TSymb">
<Block Start="/(\{)/" End="/(\})/" Scheme="Tex" Color0="TBracket" Color1="TSymb" Color2="TSymb">
<Block Start="/(\[)/" End="/(\])/" Scheme="Tex" Color0="TBracket" Color1="TSymb" Color2="TSymb">
<Include Scheme="Tex_Symbols">
<KeyWords MatchCase="True" Color="TSymb">
<Symb Name="<" Color="TError">
<Symb Name=">" Color="TError">
</KeyWords>
</Scheme>