Main Menu

Display matching braces in .txt

Started by cichlasoma, May 21, 2010, 02:31:09 PM

Previous topic - Next topic

cichlasoma

Is it possible to set matching braces to be displayed in a plain text?

alex

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:


<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):
<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"/>
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

cichlasoma