[dokuwiki] Re: Patch allowing display table control characters
- From: TNHarris <telliamed@xxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 23 Jun 2009 17:56:30 -0400
On Tue, 23 Jun 2009 21:58:35 +0200
Izidor Matusov <izidor.matusov@xxxxxxxxx> wrote:
>
> I often need to show in table control characters | and ^. (E.g. ls |
> wc -l, egrep -i '^expression' file).
>
> As far as I know DokuWiki does not support using these characters in
> tables. Therefore I write this patch. It simply adds pattern into
> parser to allow using them together with '\' prefix.
>
A patch is unnecessary.
| %%egrep '^re' file | wc -l%% |
Or even just...
| ''egrep '^re' file | wc -l'' |
Looks nice and even wraps the text in <code> tags which is semantically
convenient.
And just for the sake of completeness...
| <code>egrep '^re' file | wc -l</code> |
Well, you get the point. Backslash escapes don't look good at all in
wiki text.
-- tom
telliamed@xxxxxxxxxxxxx
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts: