Highlighter snippets: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
m (Created page with '<pre> <?xml version="1.0"?> <!-- Highlighter.xml $Revision: 12/18/2010 --> <!-- DO NOT COPY THIS FILE FROM THE WIKI MAIN PAGE! BUT FROM THE EDIT TAB (OR T…')
 
mNo edit summary
 
Line 3: Line 3:
<?xml version="1.0"?>
<?xml version="1.0"?>


<!-- Highlighter.xml $Revision: 12/18/2010  -->
<!-- Highlighter.xml $Revision: 12/31/2010  -->


<!--
<!--
Line 16: Line 16:


<snippets>
<snippets>
 
  <branch title="Highlighter">
<branch title="Highlighter">
    <leaf type="insert" title="red" accelerator="&lt;Shift&gt;&lt;Control&gt;w" tooltip="highlight with warning text style ">
<leaf type="insert" title="red" accelerator="&lt;Shift&gt;&lt;Control&gt;w" tooltip="highlight with warning text style "><before>``</before><after>^~</after></leaf>
      <before>&lt;r&gt;</before>
<leaf type="insert" title="blue" accelerator="&lt;Shift&gt;&lt;Control&gt;x" tooltip="highlight with value text style "><before>```</before><after>^~</after></leaf>
      <after>&lt;/r&gt;</after>
<leaf type="insert" title="yellow" tooltip="highlight with special-tag3 text style " accelerator="&lt;Shift&gt;&lt;Control&gt;q"><before>````</before><after>^~</after></leaf>
    </leaf>
<leaf type="snr" title="remove" region="s" matchtype="perl" casesens="0" escapechars="0"><searchpat>`[`]+([^^]*)\^~</searchpat><replacepat>\1</replacepat></leaf>
    <leaf type="insert" title="green" tooltip="highlight with string text style ">
<leaf type="snr" title="to span" region="b" matchtype="normal" casesens="0" escapechars="0"><searchpat/><replacepat/></leaf>
      <before>&lt;g&gt;</before>
<leaf type="snr" title="to div" region="b" matchtype="normal" casesens="0" escapechars="0"><searchpat/><replacepat/></leaf>
      <after>&lt;/g&gt;</after>
<leaf type="snr" title="grep" region="b" matchtype="normal" casesens="0" escapechars="0"><searchpat/><replacepat/></leaf>
    </leaf>
</branch>
    <leaf type="insert" title="blue" accelerator="&lt;Shift&gt;&lt;Control&gt;x" tooltip="highlight with value text style ">
 
      <before>&lt;b&gt;</before>
      <after>&lt;/b&gt;</after>
    </leaf>
    <leaf type="insert" title="yellow" tooltip="highlight with special-tag3 text style " accelerator="&lt;Shift&gt;&lt;Control&gt;q">
      <before>&lt;y&gt;</before>
      <after>&lt;/y&gt;</after>
    </leaf>
    <leaf type="snr" title="ref" region="s" matchtype="perl" casesens="0" escapechars="0" tooltip="a ref attribute in highlight tag in selection"><searchpat>&lt;([rgby])&gt;</searchpat><replacepat>&lt;\1 ref=""&gt; </replacepat></leaf>
    <leaf type="snr" title="remove" region="s" matchtype="perl" casesens="0" escapechars="0" tooltip="remove any highlight in selection" accelerator="mu">
      <searchpat>&lt;/?[rgby]&gt;</searchpat>
      <replacepat/>
    </leaf>
    <leaf type="snr" title="to span" region="s" matchtype="perl" casesens="0" escapechars="0" tooltip="NOT DONE">
      <searchpat/>
      <replacepat/>
      <param name="span value"/>
    </leaf>
    <leaf type="snr" title="to div" region="b" matchtype="normal" casesens="0" escapechars="0" tooltip="NOT DONE">
      <searchpat/>
      <replacepat/>
    </leaf>
    <leaf type="snr" title="grep" region="b" matchtype="normal" casesens="0" escapechars="0" tooltip="NOT DONE">
      <searchpat/>
      <replacepat/>
    </leaf>
  </branch>
</snippets>
</snippets>



Latest revision as of 09:11, 4 January 2011


<?xml version="1.0"?>

<!-- Highlighter.xml $Revision: 12/31/2010   -->

<!--
              DO NOT COPY THIS FILE FROM THE WIKI MAIN PAGE!
     BUT FROM THE EDIT TAB (OR THE VIEW SOURCE IF YOU ARE NOT LOGGIN IN)
               ONLY THE PART WITHIN: <pre> </pre>
-->

<!-- USAGE:
	Copy and import this file in the snippets left panel menu.
 -->

<snippets>
  <branch title="Highlighter">
    <leaf type="insert" title="red" accelerator="<Shift><Control>w" tooltip="highlight with warning text style ">
      <before><r></before>
      <after></r></after>
    </leaf>
    <leaf type="insert" title="green" tooltip="highlight with string text style ">
      <before><g></before>
      <after></g></after>
    </leaf>
    <leaf type="insert" title="blue" accelerator="<Shift><Control>x" tooltip="highlight with value text style ">
      <before><b></before>
      <after></b></after>
    </leaf>
    <leaf type="insert" title="yellow" tooltip="highlight with special-tag3 text style " accelerator="<Shift><Control>q">
      <before><y></before>
      <after></y></after>
    </leaf>
    <leaf type="snr" title="ref" region="s" matchtype="perl" casesens="0" escapechars="0" tooltip="a ref attribute in highlight tag in selection"><searchpat><([rgby])></searchpat><replacepat><\1 ref=""> </replacepat></leaf>
    <leaf type="snr" title="remove" region="s" matchtype="perl" casesens="0" escapechars="0" tooltip="remove any highlight in selection" accelerator="mu">
      <searchpat></?[rgby]></searchpat>
      <replacepat/>
    </leaf>
    <leaf type="snr" title="to span" region="s" matchtype="perl" casesens="0" escapechars="0" tooltip="NOT DONE">
      <searchpat/>
      <replacepat/>
      <param name="span value"/>
    </leaf>
    <leaf type="snr" title="to div" region="b" matchtype="normal" casesens="0" escapechars="0" tooltip="NOT DONE">
      <searchpat/>
      <replacepat/>
    </leaf>
    <leaf type="snr" title="grep" region="b" matchtype="normal" casesens="0" escapechars="0" tooltip="NOT DONE">
      <searchpat/>
      <replacepat/>
    </leaf>
  </branch>
</snippets>