improving (:markup:) [ was: Re: [pmwiki-users] block preformat, spaceless?]

Russ Fink russfink at hotmail.com
Fri Mar 18 14:40:35 CST 2005


>From: Neil Herber <nospam at eton.ca>
>Thanks Russ. I *still* really want to know how to display this construct 
>properly with (:markup:). I suspect only Patrick has the answer.
>
>Since this would be a general problem with any delimiter choice, perhaps 
>the (:markup:) syntax should be:
>
>         (:markup:) <opening tokens> <content for markup example> <closing 
>tokens>
>
>where <opening tokens> could be any arbitrary set of characters which would 
>then be reversed (or more easily, just reused) as the <closing tokens>. 
>Even if there were just two sets of legal tokens, you could use one set to 
>enclose the other. Then the only limitation would be the inability to show 
>both tokens in a markup example.
>
>This is what I want to display using (:markup:):
>   [= some code here
>more code
>more
>until you're done, then =]
>

I'm right there with you.  It would be similar to how sed/vi handles forward 
slash for delimiters; you can either say:
  s/sometext/someothertext/g
or if you're dealing with a directory name, you use the '%' character as in:
  s%some/path%some/other/path%g





More information about the pmwiki-users mailing list