Highlighter snippets

From Bluefish Wiki
Revision as of 20:16, 9 March 2012 by Fal7i (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<?xml version="1.0"?>

<!-- Highlighter.xml $Revision: 03/09/2012   -->

<!--
              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 title="highlighter2wiki">
      <leaf type="snr" title="blue" tooltip="" region="b" matchtype="normal" casesens="0" escapechars="0">
        <searchpat><b></searchpat>
        <replacepat><span style="color:blue"></replacepat>
      </leaf>
      <leaf type="snr" title="red" tooltip="" region="b" matchtype="normal" casesens="0" escapechars="0">
        <searchpat><r></searchpat>
        <replacepat><span style="color:red"></replacepat>
      </leaf>
      <leaf type="snr" title="green" tooltip="" region="b" matchtype="normal" casesens="0" escapechars="0">
        <searchpat><g></searchpat>
        <replacepat><span style="color:green"></replacepat>
      </leaf>
      <leaf type="snr" title="nl2br" tooltip="" region="b" matchtype="perl" casesens="0" escapechars="0">
        <searchpat>\n</searchpat>
        <replacepat><br />\n</replacepat>
      </leaf>
      <leaf type="snr" title="&nbsp;" tooltip="" region="b" matchtype="normal" casesens="0" escapechars="0">
        <searchpat>  </searchpat>
        <replacepat> &nbsp;</replacepat>
      </leaf>
      <leaf type="snr" title="no <pre>" tooltip="in media wiki a line begining with a space give <pre>" region="b" matchtype="perl" casesens="0" escapechars="0">
        <searchpat>^ </searchpat>
        <replacepat>&nbsp;</replacepat>
      </leaf>
    </branch>
  </branch>
</snippets>

Personal tools