[pmwiki-users] Free markup character?

John Rankin john.rankin at affinity.co.nz
Wed Apr 5 17:48:59 CDT 2006


On Thursday, 6 April 2006 10:25 AM, Allister Jenks <arj at zkarj.co.nz> wrote:
>Help!
>
>I want to create a new markup that is very quick to type to
>style individual words (or occasionally a couple of words).
>
>I tried ;this; and it works fine, but breaks the >><< markup!! 
>Looking at my keyboard I can't see any symbols that have not
>yet been used except for "?" (and I thought ";") and am too
>unfamiliar with regex to work out how to create a safe markup. 
>I don't want any more than 2 characters either side of the
>word(s) because I will be using it all over the place.  The
>goal is to style the words blue and italic.
>
>Can anybody educate me on why I broke >><< by defining ";",
>and/or suggest a suitable markup I could implement?
>
>I had Markup("", "inline", "/;(.*?);/", "<span
>style='font-style:italic; color:#0000c0;'>$1</span>");
>
Try ;;text;; -- this is less likely to produce unexpected 
side-effects or clash with other recipes.

-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list