[pmwiki-users] Markup for Page Text Variables
Eemeli Aro
eemeli at gmail.com
Thu Apr 24 09:07:29 CDT 2008
Try adding this to your config file:
$PageTextVarPatterns['var (...)'] =
'/^(\\s*(\\w[-\\w]*)\\s*\\()(.*?)(\\))/m'
Haven't tested it, but that ought to work.
Remove the ^ if you'd like to match things in the middle of a line as
well as at the beginning of one.
eemeli
On 24/04/2008, Dave Cooke <david at ellendee.co.uk> wrote:
> Hi all,
>
> Is it possible to either alter markup or create new markup for PTV's. It would
> suit my purposes if I could define a PTV thus:
> PTV (Value)
> {$:PTV} would then display Value?
>
> DaveC
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list