
⠪ hrc-ਯ⮢ ⥪ colorer


 

HRC -  ଠ ࠭ ᠭ ᨭ⠪ 몮 ணࠬ஢, ਯ⮢  㣮 ஢ ⥪⮢ ଠ樨.  ᯮ  ⥪   ᨭ⠪᪮ ࠧ  梥⪨ 楫 ⥪.  饬-,  쭮 ᫮ ਯ⮢   묨 ﬨ ᠭ ᨭ⠪. hrc ᭮  몥 xml,    ᠭ ࠭   ⮬ ଠ.  ⠢    ᯥ樠쭮  ⮣ ᠭ ᨭ⠪ hrc  DTD (hrc.dtd)  ⨫ ⠡ ८ࠧ  html (hrc.xsl).

 ⮣ ⮡   hrc,   뫮  ᮧ,   饬-  "㡨"   堫. ࢮ-ࢮ     祣 ᮡ⢥ 㦥 hrc,       ࠡ⠥. ⮬ ।⥫쭮 ⠩  㬥  ॣ ࠦ  - cregexp.html. ࠧ  ।,  ᫮ xml ( html)   㣠 -   ᫨ 㣠,  ன  hrc 䠩   冷. ᫨  ணࠬ   ⮣, ,  饬-,   .   ᫨  﫨 - "  , ".

। ⥬,   뢠,  ਪ  ⥬ ਯ⮢. ᪠  饭 ਠ     뢠   -   奬 (scheme).  ,  ਬ,  奬 몠 C/C++, Pascal, Perl... ,  ⠪ 몮 奬 ᮯ⠢  ⨯ 몠 (type) -   㤥 ࠭ ⥫쭠 ଠ  襬 몥.  ਬ, ७ 䠩 ⮣ ⨯ (᫨  䠩  䨪஢ ७, ⠬  㤥 ࠭  । ⮣ ⨯  ࢮ 窥 䠩).   㤥 ᮤঠ ᠭ 몠 -  뢮 짮⥫,   ⠪ . ᠭ  ⨯  ࠭   䠩 (   ),   奬 몮    ᢮ 䠩.  ⥯  㤥 㦠 奬?  㧨  奬 ࠧ ( ᫨    ⮬   䠩) -  ᫨ 奬 ,   㤥  䥪⨢.    ⨯  㪠뢠, 䠩   奬 ⮬ ⨯ ॡ.  ࠧ,  짮⥫ ஥  䠩,  롥 㦭 ⨯ 䠩  ७  ⮫쪮 ⮣ 㧨 室 ⮬ ⨯ 䠩 奬.  ⠪   饬 .
⠬ ( ⠬) hrc

   hrc 䠩 祭 ,      ଠ. ন  䠩 룫廊 - ⠭⭮:

<?xml version="1.0" encoding="Windows-1251"?>
<!DOCTYPE hrc SYSTEM "hrc.dtd">
<?xml-stylesheet type="text/xsl" href="hrc.xsl"?>
<!--
     ਨ ᮧ⥫
-->
<hrc version="4ever">

<!-- ᭮ ᮤন -->

</hrc>

  窨 -  ⠭ 祭 xml,     <hrc>    ᭮ ।. ,  ࠬ version  易⥫   ⮫쪮   䠩,  ஬  ᥩ  ३.
colorer.hrc

  䠩,  ஬ 室 ।  ⨯   㦭 奬.  ᮪ ⮣ 䠩:

  <include name="regions.hrc"/>
  <include name="defines.hrc"/>

  <type descr="c++" name="cpp" exts="/\.(cpp)|(cxx)|(cc)|(hpp)|h$/i">
    <load name="base/cpp.hrc"/>
    <scheme name="cpp"/>
  </type>

 ᯮ  <include name="filename.hrc"/>   ᯮ㥬  ।  㪠뢠   室  䠩   filename.hrc. ,  䠩 砥 ᫮,   ᫨  㪠<include name="base/c.hrc">,  䠩  奬  㧨  直 ⫠⥫.

,  <type ..> ᮧ ⤥ ⨯ 䠩.  襬 砥   C++. ,   descr  ᠭ 몠  ⮡ࠦ 짮⥫,  ࠬ name  㭨쭮 ⥬  ⨯. , ࠬ exts 㪠뢠 ॣ୮ ࠦ  ଠ  (cregexp), ஥ ᯮ  䠩 C++.

  type    <load name="base/cpp.hrc"/> , 㪠뢠 ,   䠩 ᪠ ᠬ 奬 몠 C++. ⠪  scheme   ᪮쪮 - ⮣  㧨  㪠 䠩.   ,  <scheme name="cpp"/> 㪠뢠  奬,   ᯮ짮  梥⪨ 몠 C++. ,    ᮢ   ⨯.   易⥫쭮 -  ४ ࠢ ᠭ hrc.

  type  ᯮ짮  ࠬ switch:

  <type descr="default" name="default" exts="//">
    <switch type="messages" match="/^from/i"/>
    <switch type="diff"     match="/^(diff)|(---)/i"/>
  </type>

 ࠬ 㪠뢠 ,  ᫨ 䠩 ⮣ ⨯   ,  ᮢ  ॣ ࠦ match,  室 ४  ⨯, 㪠  ࠬ type. ,   ⮬ ࠬ 㪠뢠  ᠭ ⨯ -   ⥬  (name).

 ᠭ  砥, ᫨ 롨ࠥ ⨯ default (  䠩      ࠭ । ⨯),  ࢠ 窠 ᮤন ᨬ diff  ---,  ந 롮  ⨯ default,  ⨯ diff.
᭮ ᮤন hrc

   ᪠   쪮  -

<define name="dNumber"    value="10"/>
  । 梥⮢ ॣ   dNumber, ᢠ  祭 10. ⮢ ( 筥  ᨭ⠪᪨) ॣ ।  ஢ ᥬ  䠩.  ਬ   ᫮.   ᯮ짮  -㣮:

<define name="dNumHex"    value="dNumber"/>
  ॣ dNumHex । १ dNumber.   ।⠢,  ॣ   梥.  祬   ᮢᥬ ࠢ쭮    .

, ⥯    ᭮   hrc 䠩 - <scheme>    ।  奬 몠,    ,  ந ࠧ.  ⮣  ।  , ⢥騥  ࠧ ⥪   梥. 筥  ⮣  ᫮.
 keywords

  ।  祢 ᫮,   뤥  । ᥬ:

  <keywords region="dKeyWord" ignorecase="ignorecase" worddiv="/[^\w_]/">
     <word name="asm"/>
     <word name="auto"/>
     <word name="break"/>
     <word name="case"/>
     <word name="cdecl"/>
     <word name="char"/>
     <word name="const"/>
     <symb name="->"/>
  </keywords>

    word  뤥 ᫮ (  ப,   ࠭栬 室  ᨬ ᫮  ᫮),   symb  뤥 ᨬ -    ࠭ 뤥塞 ᥬ. ࠬ region   keywords ᯮ  㪠 ॣ, ᮯ⠢塞 㪠 祢 ᫮.   ࠬ  㪠뢠  ।⢥    word  symb.   ࠬ - worddiv,   ᨬ,   ᨬ-ࠧ⥫ﬨ ᫮.  設⢥ 砥  ࠬ   㪠뢠 -  㬮砭 ࠧ⥫ﬨ   ᨬ ஬ ᨬ ᫮(㪢, ),  ᨬ ન.

᫥ ࠬ ⮣  - ignorecase="ignorecase" 㪠뢠 ,   ᫮  ⮬   ᪠   ॣ ᨬ.
regexp

  ᯮ  ।  ॣ୮ ࠦ  ࠧ  뤥 ᨭ⠪.   ࠡ뢠 ந ᨭ⠪᪨ 樨 -   ।  ப 䠩. 룫廊  ਬ୮ ⠪:

   <regexp match='/".*?"/' region0="dString"/>
   <regexp match="/'.*$/"  region0="dComment"/>
   <regexp match="/\b[0-9.]+(e|E[\-+]?\d+)?\B/" region0="dNumber"/>

  ࠬ ( ⢥ 易⥫)  ॣ୮ ࠦmatch.  ॣ୮ ࠦ ᮯ⠢   樥 ப.  砥 ᮢ, ந室 ᨭ⠪᪮ 뤥  ᮮ⢥⢨  ࠬࠬ regionX,  X - ᫠  0  F.  i- ॣ 㪠뢠  ॣ (  梥⮬) 뤥 ᮮ⢥ i- ᪮  ॣ୮ ࠦ. region0 ᥣ ᮮ⢥ ᥬ ॣ.
block

 ᭮ ,    hrc ᮧ 祭 ᫮ 몮 樨,     쭮 .

   <block start="/\/\*/" end="/\*\//" scheme="Comment"
          region="cComment" region00="dpOpenStruct" region10="dpCloseStruct"/>

 ⮣    ࠬ start  end  ⠪  ॣ묨 ࠦﬨ,  । 砫  砭 뤥塞 . ⨩ 易⥫ ࠬ scheme   奬,   㦭 ४  ⨬ 砫  殬.  㪠 砥   ।   ਩ 몠 /++. 묨 ᫮   , "  ⨫ ⠭ /* - ⠪     뤥  奬 "Comment" -    ⠭ */"

 奬 Comment -    奬 (  ਨ 祣   뤥).  㣮 ஭ ⠢   奬 । ॣᯠ, 뤥饣 ᫮ ( 㪠뢠  ) -   ᫠,     뤥.

 梥⮢ 뤥   block  ࠡ ࠬ஢ regionXX. ⤥쭮 騩 ࠬ region  梥 뤥 ᥣ ⮣  -  砫  .   ࠬ region0i  region1j -  뤥 i- ᪮   start  j- ᪮   end.     regexp region00  region10 ᯮ  뤥 ᥣ ॣᯠ start  end,  , 稭  , 뤥 ᮮ⢥   ᪮ , 㬥 ᯮ짮 ⮣    ࠧ⥫ १ -  ⮬  ᪠  .
inherit

 ᠬ ⥫㠫  -      冷  ᥡ ࠡ (     ).  inherit  奬,  ன ⥪ 奬 ᫥  ᢮⢠ -   祢 ᫮, ॣ ࠦ,   㣨 ᫥. ⮡  ,

<scheme name="Comment">
   <inherit scheme="mNetEMail"/>
   <inherit scheme="mNetURL"/>
</scheme>

 । 奬 ਩ (Comment).   ਫ    -    ᮢᥬ .   㤮 뤥 ⮢  - 祣   .   ⮣   뢠  १  regexp,   ᫥  㦥  奬. ᪨,   窨  ⮬,   ᪮ ᮤন ᫥㥬 奬   奬.  ,   砥 , ᫨  ᫥ ᢮⢠ 让 奬?  ਬ  ++ -    묨 ⥫묨 祢묨 ᫮.    ९뢠 奬 ஢   ᫥㥬  몥 ++  . ,   ⮬    ( ) ஢  ந室 -   祣 㬥蠥  ꥬ hrc   ꥬ ᯮ㥬 .
। ।⠢

.         ?    , 奬, 뫠  㣨 奬, । ⥬ ᠬ ᫮  ⢨  hrc-.     ਬ. -, ࠧ ।ॣ:   ࠧ  祭 奬  ᫥ .    㣮  ஢  - ४,  ࢮ -  ४ 㦤,  ஥ - ४ .

묨 ᫮ ४  । ᮤন 楫 䠩,  ४ ᫥ ᥣ    .  ⮣ ᫥ 쬠  ᪨ 뢮.     맢 奬,    뫠 ।  ᪮஢ -   奬,  ᢮ ।  맢  奬 -  ⠪ .  ,  ⮬  㤥 横  - ⮬  横筮    楫 ⥪ -        ᪮筮    㣠 (⥪- 祭).  ⮣,  ᮧ ,  㤥 뢠 奬,  ன  ।!    祣 ࠭ - ⠪ ࠧ, ਬ, ୮ ।  ਨ   ⨫.

㣮   ᫥. ᫨  ᫥ 奬,    ।,   ᫥ ,  祣  㤥?  .  ࠢ쭮 - ⮬  㤥  横 . ⮬   ᫥  । 奬 (  ᪫祭 -  "⠢"  奬 ᫥  奬 -   ).   ⪨  ᥪ ஬.

 -   ਬ⨢ ஢,  奬  ⠪   㦭.    .  ⠪ 奬  hrc ,    砫  筮 . 稭    ਥ,   ᫮묨 ⥬ ⢨ 奬  xml- -  ᯮ ᫥  堭 饭   ᢮,  맮   堭 ॠ樨 ࠧ ᫮  몮.

 ,    (⨯)  ᮮ⢥⢮   奬.   모  ࠡ  ᭮ 奬 ࠧ 몮, ꥤ    (    ⮬  ॢ).    ⥬ ⨢ ਬ 堭 ᫥.  ᮢ㯭  堭 㠫樨,  ஬ 㤥 ᪠ ,   ࠢ  ᫥ ᮢ  ꥪ⭮-ਥ஢ 몠 ணࠬ஢.

祬  祭 ⭮ ꥪ⭮-ਥ஢ ணࠬ஢.   魮 ᢮  ।祭  ᮧ ᨢ ७  ணࠬ -    짮⥫,  ணࠬ. ,   ꥪ⭮-ਥ஢ ணࠬ  ⮬  ++  ९   㣮 .  ⮫쪮 ᪮쪮  㤥 룮...  ⮣,      筮 ॠ樨,   ணࠬ,  ᠬ ,  ࠡ. ᫨ ணࠬ ॡ ﭭ , ।뢠, ࠭ ᮢ⨬⥩ ᠬ  ᮡ,      ᯮ짮   ᠭ -   㤥 ꥪ⭮-ਥ஢.   㣮 ஭, ணࠬ, ᠭ   ᥬ,  ࠦ ᨢ   ⥪  -   ᢮  ࠡ.   ࠭稢 ⮪ ᫨ -    墠⠥ ᮢ, ᥬ  ஢.

  ᥡ  -   ⮫쪮 祢 ᫮ class,public, protected  virtual.  ⠪ ? ।ਪ  ᪠,  ਪ  ࠧ஢: "  ,  뢠 ᢮     -०  ॡ뢠  㦤.   ᢮   ,  ࠢ,     ;  ⠪  㤥 ⭮".

,  ࠦ 㠫   .  ⠪    hrc?  ᥣ   ᯨ᪮ ᯨ᪮ ᯨ᪮  -         . ꥬ hrc-  20000 ப ࠡ뢠 ஬ ࠧ஬  500 ப. hrc 㫨, ꥤ   ࠡ  ।⠢   ᨭ⠪᪮ . 祭   ᫮ 몠  祩   ⢨ ࠧ 奬. ᮡ  室 㤥  ਬ 堭 㠫樨 奬.
।⥫쭮 祭

, ᫨  祣-  ⮣ 﫨,   .       㡮 ᢮⢠ hrc, ⮬ ᫨    hrc  ᯫ ।⠢,  ஡ ᬮ ਬ.   ᠬ colorer.hrc, defines.hrc - ⠬ ।  ⥭쪨 奬 - ᮢ, regions.hrc -  ⮬ 䠩 ।  ஥ ᥬ - ⮫쪮  ᯮ  梥⮢ ।.

஡ ᬮ ⥭쪨 ਯ - தconfig/litestep.hrc -     ᭮ ᢮⢠.
७ ᢮⢠ 奬 ⢨

  ᬮਬ  ࠭ ॣ ࠦ, ࠭ 奬,  祭    ⮭ ன 몮,  ⠪  ⨥ ਮ⮢ ॣ ࠦ.
࠭

⠪, ࢮ - ࠭. ᫨ ⥫쭮 ⠫ cregexp.html (    뫨  ० 祬  ),  ୮ ⨫ ࠭ ࠬ (ᨬ \m  \M), 騥 ᬥ 砫  砭 (᪠ ) ॣ୮ ࠦ.  ࠬ  ᯮ짮   , ⠪    ॣ ࠦ.  ஫  ?

ࢠ - 쭮 . ,  ਫ  region00 (region0  regexp)?  ॣ ᮯ⠢   ᪮,   ᥬ ॣ ࠦ.    㬮砭  ॣ୮ ࠦ -     ॣ୮ ࠦ -    砫 ᢮  .   ࠬࠬ \m (砫)  \M ()    㪠  ࠭. 祬    㣨 ࠬ ⮣ ॣᯠ     㤥.

  뫮 .  ⥯  ﭨ, ஥ 뢠  ࠬ  ࠧ.  筮 筮 regexp, ᫨  ᬥ   ॣ୮ ࠦ,   㤥  ஬ (  梥  -஬),   쭥訩  筥   窨  砭. 묨 ᫮  ⨬ ࠬ஬ ॣ    ⤠  ᥡ (  ᢮  -     )  ࠧ  -   㣨 ⠬ 奬. 㤥 ந室  -     ࠪਧ  "஧ ॣ".  ਬ,  몥 ᪠  । 㭪樨.  ᫮ ॣ,     ᥡ ࠧ 祢 ᫮, ᨬ ⠬...   ᥣ. ᫨   㭪  ᯮ,  ਬ 祢 ᫮ 頥 祭 ⮩ 㭪樨   뤥. 筮 ⠪   뤥 ᪮  㣨 ᨬ.   冷.  ?  ᬥ頥  ॣ୮ ࠦ  ᠬ  砫  ⥬ ᠬ ⤠    뤥 祢 ᫮:

   <regexp match="/^ \s* \M (procedure)|(function) \s+ ([_\w]+)/ix" region3="dFunction"/>

ࠬ \m, , ⭮⥫쭮 ⮪ ᨭ  ࠥ  ஫ (४ 饬 ).  쭥襬,      ࠡ ,  ࠭栬  ॣ ࠦ      ࠭ -㬮砭,   ࠭,  ⠭ ࠬࠬ \m \M.  ⮭ ࠡ  ன ࠡ 奬  ᫮   뢠 ࠭ ࠦ  奬  ।    ⥪.

⠪,   ந室 ࠡ  ᫮ 奬   窨 ७  ࠭?   start 筮 筮 ॣ ஬ 뢠 ⮫쪮  砭 - 稭  ⮣     奬 ⮣ .  ந室 ࠧ  ,  ᠬ ᭮,  ந室   த⥫ 奬?   祭 易  ⨥ ਮ ॣ୮ ࠦ  ਮ .  㬮砭, ᫨  ᠬ 祣  㪠뢠, ਮ regexp  block - ᮪.   ᬮਬ ࠡ " 㬮砭"

⠪,   ࠡ⠥  奬,  - ࠧ    砭 ⮩ 奬. ।,    ப 室  ᠬ     -      쭮  ॣ ࠦ    ᪫祭  㣨 .  ந室?   ⮬ 砥    砭 襣 த⥫᪮ . ! ᫨   ॣ  ,   ᠬ   ᮢ  ,  , 室  ,  :

   ਬ ᫨  砭  "}",     ।
  ਩   ⨫,   㤥 ⠪:
  // any text....     } - ou - our end bracket!

 ந ⠪ 뢠 ⪠ -   த  ⮩   奬,   ஥ 砭 㤥 ᪠ .  ⠪      뢠 ᪮.

⮡  ।, 㦭 ᯮ짮 ࠬ஬  ਮ.   regexp,   block  ࠬ 룫廊 lowpriority="lowpriority". , ᫨  㪠 ਬ  ॣ୮ ࠦ, ।饬 ਩,  ⠢  ࠬ,  ਩ 뤥 ⮫쪮   襩 䨣୮ ᪮,  ࠢ ୥ த⥫᪮ .  ॣᯮ   ਮ⮬  뢠 ᪮ 㤥  ᥢ-殬 ப.

 祬   ࠭ ॣᯮ?    ࠭  । ,  ⪠ 㤥 ந室    㤥. ᫨ ࠭ ॣᯠ   end ४뢠,  㤥 ⪠.  . - ⮣,  ,  ࠬ end   樨:  砫쭠 (\m) ⠪  筠 (\M).

 ਬ ᥩ ⮩ ⮢  ਢ ⠪ :

<scheme name="xslTags">
   <keywords region="xmlOpenTag">
     <word name="apply-imports"/>
     <word name="apply-templates"/>
     <word name="attribute"/>
     <word name="attribute-set"/>
     <word name="call-template"/>
   </keywords>
</scheme>

<scheme name="xslTagList">
   <block start="/\b(xsl)(\:) \M [\w\-]+/ix" end="/~[\w\-]+\m/" scheme="xslTags"
          region01="xmlNameSpace" region02="dSymb"/>
</scheme>


    祭  祢 ᫮, 稭  ᨬ "xsl:". xsl:apply-template, xsl:attribute,  ⠪ . 筮   ᫨  ⠪,     砥  ᫥⥫᪠ ஭ ஡.   㪠  ਬ? .  奬 xmlTagList  砫쭮 ॣᯥ  뢠 饭 ਠ ⠪ 祢 ᫮,    ᬥ饭  -  ࠧ  砫 ᠬ 祢 ᫮  䨪 "xsl:". ,   end ᯮ 祭   - "~".   "ਢ뢠" ॣ  砭  start -    ࠧ  樨  \M  .   end  ⠪  ᫥⥫쭮 ᨬ ᫮,  ⮫쪮 ᫥ ⮣ ⠢ ࠬ \m,  㪠뢠,  砫   ᬥ ࠢ - ⥬ ᠬ  祢 ᫮  奬 xlsTags  ९⢨ 뤥.

,    ਬ஢ -  ᠬ   ⨬ ﬨ  ਤ뢠   ᫮ .   ਬ 奬 몠 Perl - base/perl.hrc -      ࠢ  㤠,     ஠஢.  ਬ প ⠪ "஥" 権:


 s(          #
   $foo
   (sf)

   )          # great perversion - but...
          #  note here could be only comments
   (

   12        # foo quux
   ($bar)

  )ix;

㠫  ᫥

   ࠫ  ᫥  易⥫ ࠧ.   ᪠   ᢮⢠ 設⢠ 몮,  ਭ㦤 ᯮ짮 ⠪ 堭,  㠫 奬  ᫥.

  몠  樨,    몠 ᠬ  ᥡ.  ⠪ ⢥ 樨,  䨣 ᪮  ,   begin/end  ᪠. ,     㦤  ⥫쭮 ࠡ⪥,   ᫥   訥  ࠡ⪨  権  ᪠ 訡 㦤  奬,  㦥  宦  ᠭ ᪮  - 묨 ᫮ 奬,  ࠧ   몠 (᫥  ).  ࠡ  ᯮ짮 ࠡ  権, ᪠ 訡   ,  㭪権 (   ᯨ᪮ ).

 뫮  ,  ⠪ ࠡ ᪮쪮  ᮣ  㦥   堭 ᫥. ।, 奬 ++ ᫥ 奬 , ।  室묨 ᢮⢠.   奬  ᮤঠ , 騥 ४ᨢ   맮  ᥡ.  ⮣   ࠧ ++ ?  孥 ஢  㤥 ++ 奬,   ⮫쪮   , ॢ ⥪  奬  (   ᪮),  奬 㤥 㦥  !

  ਬ 筮 ࠡ 堭 ᫥. ।⠢,     奬,  ᫥ 奬  ᫮ 몠 (饣   奬), ।   ᢮⢠.  祭   ᫥ 室 ⠢ 묨 ᢮⢠ ᠬ ।⢥ ।,   ⮬ ᢮⢠  奬, ᯮ㥬 .  ᤥ    㤠.

 ।⠢,  ࠤ樮 奬 ᫥  ஢.     ᯮ짮 ᢮⢠ 㣨 奬,  ᠬ  奬    묨 騪 -     "".   ⥯, ᫥  ਬ஢,       堭 㠫樨  ࠧ ⠢ ஡.

ᬮ   ਬ:

   <inherit scheme="c">
     <virtual scheme="c" subst="cpp"/>
   </inherit>

  ᠬ ,   奬 ++ ᫥ 奬 .  ᫥  筮 -   ᯮ짮  virtual.    ॠ 堭 㠫樨.   ?   ,   祭  奬 ++ 奬 ,  쭥訥 ⪨ ᫠  奬      ਢ  ⮬,   뫪   뫪  奬 ++. ந , 㠫 奬   奬 ++.  ⥯ , ஡  묨  ᥡ  몮묨 ࠬ  ᭨. ,   ⨥ 뫪  奬     ४祭      ,  ᫥ ,    㠫 - 祬   奬,    ४ᨨ  奬 . ⢥,  virtual    ᪮쪮.

 ୮ ஢, , ࠧࠫ. 㠫 -  ᥣ    奬   ,   砥.   ᫮ ᫨誨. 㠫   .    ᪮ ᬥ.  ᠬ ,   ᬮ  .  ⮣ ⮡   㡨,  ।⠢,   ᫮ 奬 ।⠢ ( 㠫쭮 堭)  ᢮ 奬,   㠫. ᫨ ᠭ ॡ 㠫樨   ᪮쪨  ,    : 奬 .   쭥 ஢ 㠫樨   ᠬ 孥  㤥 筮 ⠪ .

  ᪠  ।. ᫨   ஢ 㠫権,   -   室 ,    奬 (  ) ⪫  ⥬ 㠫樨  ஢,  㠫樨  ᮪ 浪 ⠭.

 ਬ  ⠪ ⥬ ⢨:

<scheme name="mPairedBrackets">
   <!-- paired block -->
   <block start="/(\{)/" end="/(\})/" scheme="mPairedBrackets"
          region00="dSymbol2" region01="dpOpenStruct"
          region10="dSymbol2" region11="dpCloseStruct"/>
   <block start="/(\()/" end="/(\))/" scheme="mPairedBrackets"
          region00="dSymbol" region01="dpOpenStruct"
          region10="dSymbol" region11="dpCloseStruct"/>
   <block start="/(\[)/" end="/(\])/" scheme="mPairedBrackets"
          region00="dSymbol" region01="dpOpenStruct"
          region10="dSymbol" region11="dpCloseStruct"/>
</scheme>

<scheme name="C">
   <inherit scheme="mPairedBrackets">
     <virtual scheme="mPairedBrackets" subst="c"/>
   </inherit>
...

奬 mPairedBrackets ।   梥⪨  㦥  ᪮  ⨯. 祬  ⢥  奬  ᯮ ᥡ - ⥬ ᠬ ⨣    ᪮.  ᬮ ⥯  奬 "C".  ᫥  奬,  㠫   ᥡ.  ? 奬 mPairedBrackets 㤥  ஫ ᪥  奬  -  奬   稭  権.

 ୮ ਬ 㠫쭮 堭     奬. ᫨   - ᫮,  ஡  ࠡ 奬 ASP, PHP.   ࠩ xml/xsl (⠬ ).
ࠢ ᠭ hrc

 ᠭ ᨭ⠪ 몮 ணࠬ஢  hrc  ਤন   ࠢ,    ⠭⮬,  ᮡ  ᫮  筮 ⮣     㣨.

ࢮ ,  , ᭮: ਤন ⠭ xml.   -   ॣ (⮡  ),  ࠬ 祭     窨. ,   ⫨稨  ᠭ ᠬ hrc,  ᥬ,  奬, ⨯ - ॣ஭ᨬ.

 । ᨭ⠪᪮ 뤥  ஥묨 ᥬ (d.*).  ,  ஥  祣    ᬮ ᯮ짮.     ࠢ - । 뤥 ⮢ ⥪  ᮮ⢥⢨  ᫮  ᥬ. 묨 ᫮   । ਨ 梥⮬ ᥫ ⮫쪮 ⮬   梥  ࠢ.  - ᨭ⠪᪨ .  祣    砫쭮 ⠯  ॠ 梥 ⮣   ॣ. ᫨    梥  ᢮ ,  ᮧ ᢮ HRD 䠩,   த ਣ hrc.

 ᠭ ᢮ ᮡ⢥ hrc ࠩ ⠪  ᯮ짮 ८।  梥⮢ ॣ  ॣ ᯥ᪨  襣 ⨯ 䠩.  奬, ⭮騥  ࠧ  ⨯  ঠ   䠩,   ࠧ뢠   .  ⮣, ࠩ   ᯮ짮 㦥 騥 奬   ( ।  defines.hrc).  ᯥ      易   襭.   ᥣ    㠫樨 襩 奬,  ᠬ ਬ  堭  .  ᯥ ⭮  楯 ᥩ hrc-.
 

,  ᫥  冷   hrc:

<?xml version="1.0" encoding="Windows-1251"?>
<!DOCTYPE hrc SYSTEM "hrc.dtd">
<?xml-stylesheet type="text/xsl" href="hrc.xsl"?>
<hrc ver="4ever">
  <define name="rname" value="regid"/>
  <include name="fname"/>
  <scheme name="sname">
    <inherit scheme="sname">
      <virtual scheme="sname" subst="sname"/>
    </inherit>
    <regexp match="//" regioni="rname" lowpriority="lowpriority"/>
    <block  start="//" end="//" scheme="sname"
            region="rname" regionij="rname" lowpriority="lowpriority"/>
    <keywords ignorecase="ignorecase" worddiv="/[]/" region="rname">
      <word name="wname" region="rname"/>
      <symb name="wname"/>
    </keywords>
  </scheme>
  <type descr="descr" name="tname" exts="//">
    <load name="fname">
    <scheme name="sname">
    <switch type="tname" match="//">
  </type>
</hrc>
   ,     ,
 ᮡ  ࠫ ⢮ ᫥...
  ,  ᨫ ᢮ ,
    ࠢ   ᫥...
