Highlighter snippets

From Bluefish Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

<?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>