Author Topic: Display matching braces in .txt  (Read 2999 times)

cichlasoma

  • Guest
Display matching braces in .txt
« on: May 21, 2010, 02:31:09 PM »
Is it possible to set matching braces to be displayed in a plain text?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: Display matching braces in .txt
« Reply #1 on: May 24, 2010, 05:20:08 PM »
Yes. But you need to change the default Plain Text schema (be aware it can be overwritten after upgrade).
Go to HippoEDIT data folder (\data\syntax\txt_spec.xml) and add following lines to STYLES list:

Code: [Select]
<Style id="scope" name="Text Highlights" bold="1" italic="2" underline="2" clr="#FFFFFFFF" bkclr="#FFFFFFFF"/>
<Style id="scope_error" name="Text Highlights Error" bold="1" italic="0" underline="0" clr="Error" bkclr="#FFFFFFFF" overview="1"/>
<Style id="matching_brace" name="Matching Brace" bold="2" italic="2" underline="2" clr="#FFFFFFFF" bkclr="Matching Braces"/>

after this (fex):
Code: [Select]
<Style id="curr_line_frame" name="Current Line Frame" dstyle="true" dbkclr="true" clr="#FFFFFFFF" bkclr="#FFFFFFFF"/>
<Style id="url" bold="0" italic="0" underline="1" clr="Keyword" bkclr="#FFFFFFFF" hotspot="1"/>

cichlasoma

  • Guest
Re: Display matching braces in .txt
« Reply #2 on: June 05, 2010, 04:15:11 PM »
(Thank you a lot! :) )