home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / con2v766.zip / colore01.zip / includes / scripts / messsages.hrc < prev    next >
Text File  |  2000-02-28  |  7KB  |  130 lines

  1. <!--
  2. Messages highlighting for colorer
  3.     Changed by ANR Daemon, Hell Corp
  4.     <anrdaemon@hell.corp.mtu-net.ru>  2:5020/877.24@FIDO
  5. -->
  6.  
  7. <Define Name="pktB"    Value="dResWords">   <!--    *Bold* -->
  8. <Define Name="pktI"    Value="dComments">   <!--    /Italic/ -->
  9. <Define Name="pktBI"   Value="dCommentsEx"> <!--   /*BoldItalic*/ -->
  10. <Define Name="pktU"    Value="dVars">       <!--    _Underline_ -->
  11. <Define Name="pktBU"   Value="dVarsEx">     <!--   _*BoldUnderline*_ -->
  12. <Define Name="pktIU"   Value="dParams">     <!--   /_ItalicUnderline_/ -->
  13. <Define Name="pktBIU"  Value="dLabels">     <!--  _/*BoldItalicUnderline*/_ -->
  14. <Define Name="pktR"    Value="#00070008">      <!--    #Reverse# -->
  15. <Define Name="pktRB"   Value="#0007000F">      <!--   *#ReverseBold#* -->
  16. <Define Name="pktRI"   Value="#00070001">      <!--   /#ReverseItalic#/ -->
  17. <Define Name="pktRBI"  Value="#00070009">      <!--  /*#ReverseBoldItalic#*/ -->
  18. <Define Name="pktRU"   Value="#00070004">      <!--   _#ReverseUnderline#_ -->
  19. <Define Name="pktRBU"  Value="#0007000C">      <!--  _*#ReverseBoldUnderline#*_ -->
  20. <Define Name="pktRIU"  Value="#00070002">      <!--  _/#ReverseItalicUnderline#/_ -->
  21. <Define Name="pktRBIU" Value="#0007000A">      <!-- #*/_ReverseBoldItalicUnderline#/_ -->
  22. <Define Name="pktKludge" Value="Cyan">
  23. <Define Name="pktQuote"  Value="Yellow">
  24. <Define Name="pktQuote2" Value="dDirectives">
  25. <Define Name="pktAddr"   Value="LtBlue">
  26. <Define Name="pktTagL"   Value="LtGray">
  27. <Define Name="pktTearL"  Value="pktKludge">
  28. <Define Name="pktOrigL"  Value="pktKludge">
  29.  
  30. <Scheme Name="messsages">
  31. <!-- kludges -->
  32.   <RegExp Start="/^(\x01.*$)/" Color0="pktKludge">
  33.   <RegExp Start="/^(SEEN-BY\:.*$)/" Color0="pktKludge">
  34. <!-- Quotes -->
  35.   <RegExp Start="/^(\s?.[^\s\>]+(>>)+[^>].*)/" Color0="pktQuote2">
  36.   <RegExp Start="/^(\s?.[^\s\>]+(>)+.*)/" Color0="pktQuote">
  37.   <RegExp Start="/^(\>.*)/" Color0="pktQuote2">
  38.  
  39.   <RegExp Start="/\b(To\s*:)(.*)$/i" Color0="dResWords" Color1="dStrings">
  40.   <RegExp Start="/^(Date:)(.*)$/i" Color0="dResWords" Color1="dStrings">
  41.   <RegExp Start="/^(From:)(.*)$/i" Color0="dResWords" Color1="dStrings">
  42.   <RegExp Start="/^(Subject:)(.*)$/i" Color0="dResWords" Color1="dStrings">
  43.   <Block  Start="/^(Received:)/i" End="/^\M\S\S/" Scheme="messsages" Color0="dCommentsEx" Color1="dComments">
  44.   <RegExp Start="/^(X-Mailer:)(.*)$/i" Color0="dCommentsEx" Color1="dComments">
  45.   <RegExp Start="/^(Message-Id:)(.*)$/i" Color0="dCommentsEx" Color1="dComments">
  46.   <RegExp Start="/^(X-UIDL:)(.*)$/i" Color0="dCommentsEx" Color1="dComments">
  47.   <RegExp Start="/^(Status:)(.*)$/i" Color0="dCommentsEx" Color1="dComments">
  48.   <block start="/Content-Type: (text)?!/i" end="/------/" scheme=comment color0=dComments>
  49.  
  50. <!-- Http,EMail & Fido Addresses -->
  51.   <Include Scheme="mNetAddresses">
  52.   <Include Scheme="mApost">
  53.   <Include Scheme="mStdStr">
  54.   <Include Scheme="mDecNumb">
  55.  
  56. <!-- tearline (Colorer 2.8+) -->
  57.   <Regexp Start="/(^\.\.\.\x20\M.*$)/" Color0="pktTagL">
  58.   <Regexp Start="/(^---\x20\M.*$)/" Color0="pktTearL">
  59.   <Regexp Start="/(^\x20?\*\x20Origin:\x20\M.*$)/" Color0="pktOrigL">
  60.  
  61. <!-- Style colors -->
  62.  
  63. <!-- More powerful FOUR-stylecoded regexp :) --
  64. It not work.  :(
  65. ¡π ¿ºóαáΘÑ¡µδ :)
  66.   <RegExp Start="/(#\*\/_)|(#\*_\/)|(#_\*\/)|(#\/\*_)|(#_\/\*)|(#\/_\*)|(\*#\/_)|(\*#_\/)|(\*_#\/)|(\*\/#_)|(\*_\/#)|(\*\/_#)|(\/#\*_)|(\/_\*#)|(\/\*#_)|(\/\*_#)|(\/#_\*)|(\/_#\*)|(_\/#\*)|(_#\/\*)|(_\/\*#)|(_#\*\/)|(_\*\/#)|(_\*#\/)[^\s][^\_\*\#\/]+[^\s](#\*\/_)|(#\*_\/)|(#_\*\/)|(#\/\*_)|(#_\/\*)|(#\/_\*)|(\*#\/_)|(\*#_\/)|(\*_#\/)|(\*\/#_)|(\*_\/#)|(\*\/_#)|(\/#\*_)|(\/_\*#)|(\/\*#_)|(\/\*_#)|(\/#_\*)|(\/_#\*)|(_\/#\*)|(_#\/\*)|(_\/\*#)|(_#\*\/)|(_\*\/#)|(_\*#\/)/"
  67.           Color0="pktRBIU">
  68. -->
  69.  
  70. <!-- Triple stylecodes --
  71. too slow...
  72.   <RegExp Start="/(  \*\_\/ \S [^\*\_\/]+ \S \/\_\* )/x" Color0="pktBIU">
  73.   <RegExp Start="/(  \_\*\/ \S [^\*\_\/]+ \S \/\*\_ )/x" Color0="pktBIU">
  74.   <RegExp Start="/(  \_\/\* \S [^\*\_\/]+ \S \*\/\_ )/x" Color0="pktBIU">
  75.   <RegExp Start="/(  \/\_\* \S [^\*\_\/]+ \S \*\_\/ )/x" Color0="pktBIU">
  76.   <RegExp Start="/(  \/\*\_ \S [^\*\_\/]+ \S \_\*\/ )/x" Color0="pktBIU">
  77.   <RegExp Start="/(  \*\/\_ \S [^\*\_\/]+ \S \_\/\* )/x" Color0="pktBIU">
  78.  
  79.   <RegExp Start="/(  \*\#\/ \S [^\*\#\/]+ \S \/\#\* )/x" Color0="pktRBI">
  80.   <RegExp Start="/(  \#\*\/ \S [^\*\#\/]+ \S \/\*\# )/x" Color0="pktRBI">
  81.   <RegExp Start="/(  \#\/\* \S [^\*\#\/]+ \S \*\/\# )/x" Color0="pktRBI">
  82.   <RegExp Start="/(  \/\#\* \S [^\*\#\/]+ \S \*\#\/ )/x" Color0="pktRBI">
  83.   <RegExp Start="/(  \/\*\# \S [^\*\#\/]+ \S \#\*\/ )/x" Color0="pktRBI">
  84.   <RegExp Start="/(  \*\/\# \S [^\*\#\/]+ \S \#\/\* )/x" Color0="pktRBI">
  85.  
  86.   <RegExp Start="/(  \*\#\_ \S [^\*\#\_]+ \S \_\#\* )/x" Color0="pktRBU">
  87.   <RegExp Start="/(  \#\*\_ \S [^\*\#\_]+ \S \_\*\# )/x" Color0="pktRBU">
  88.   <RegExp Start="/(  \#\_\* \S [^\*\#\_]+ \S \*\_\# )/x" Color0="pktRBU">
  89.   <RegExp Start="/(  \_\#\* \S [^\*\#\_]+ \S \*\#\_ )/x" Color0="pktRBU">
  90.   <RegExp Start="/(  \_\*\# \S [^\*\#\_]+ \S \#\*\_ )/x" Color0="pktRBU">
  91.   <RegExp Start="/(  \*\_\# \S [^\*\#\_]+ \S \#\_\* )/x" Color0="pktRBU">
  92.  
  93.   <RegExp Start="/(  \/\#\_ \S [^\/\_\#]+ \S \_\#\/ )/x" Color0="pktRIU">
  94.   <RegExp Start="/(  \#\/\_ \S [^\/\_\#]+ \S \_\/\# )/x" Color0="pktRIU">
  95.   <RegExp Start="/(  \#\_\/ \S [^\/\_\#]+ \S \/\_\# )/x" Color0="pktRIU">
  96.   <RegExp Start="/(  \_\#\/ \S [^\/\_\#]+ \S \/\#\_ )/x" Color0="pktRIU">
  97.   <RegExp Start="/(  \_\/\# \S [^\/\_\#]+ \S \#\/\_ )/x" Color0="pktRIU">
  98.   <RegExp Start="/(  \/\_\# \S [^\/\_\#]+ \S \#\_\/ )/x" Color0="pktRIU">
  99.  
  100. <!-- Binary stylecodes -->
  101.   <RegExp Start="/((\/\*)|(\*\/)[^\s][^\_\*\#\/]+[^\s](\/\*)|(\*\/))/"
  102.           Color0="pktBI">
  103.   <RegExp Start="/((\_\*)|(\*\_)[^\s][^\_\*\#\/]+[^\s](\_\*)|(\*\_))/"
  104.           Color0="pktBU">
  105.   <RegExp Start="/((\/\_)|(\_\/)[^\s][^\_\*\#\/]+[^\s](\/\_)|(\_\/))/"
  106.           Color0="pktIU">
  107.   <RegExp Start="/((\#\*)|(\*\#)[^\s][^\_\*\#\/]+[^\s](\#\*)|(\*\#))/"
  108.           Color0="pktRB">
  109.   <RegExp Start="/((\#\/)|(\/\#)[^\s][^\_\*\#\/]+[^\s](\#\/)|(\/\#))/"
  110.           Color0="pktRI">
  111.   <RegExp Start="/((\#\/)|(\/\#)[^\s][^\_\*\#\/]+[^\s](\#\/)|(\/\#))/"
  112.           Color0="pktRU">
  113.  
  114. <!-- Unary stylecodes -->
  115.   <RegExp Start="/(  \* \S [^\*]+ \S \* )/x" Color0="pktB">
  116.   <RegExp Start="/(  \/ \S [^\/]+ \S \/ )/x" Color0="pktI">
  117.   <RegExp Start="/(  \_ \S [^\_]+ \S \_ )/x" Color0="pktU">
  118.   <RegExp Start="/(  \# \S [^\#]+ \S \# )/x" Color0="pktR">
  119.  
  120.   <KeyWords Color="dSymbols">
  121.      <Symb Name=";"><Symb Name="="><Symb Name="+"><Symb Name="-">
  122.      <Symb Name="/"><Symb Name="*"><Symb Name="&"><Symb Name="|">
  123.      <Symb Name="^"><Symb Name="("><Symb Name=")"><Symb Name="[">
  124.      <Symb Name="]"><Symb Name=","><Symb Name="."><Symb Name=":">
  125.      <Symb Name="!"><Symb Name="~"><Symb Name="<"><Symb Name=">">
  126.      <Symb Name="%"><Symb Name="{"><Symb Name="}"><Symb Name="?">
  127.      <Symb Name="_"><Symb Name="\">
  128.   </KeyWords>
  129. </Scheme>
  130.