[pmwiki-users] fox: custom ptvfmt
noskule
noskule at gmx.net
Mon Mar 3 04:59:54 CST 2008
Hans schrieb:
> Monday, March 3, 2008, 10:06:05 AM, noskule wrote:
>
>
>> should make a ptv (but seams not to work)
>> $PageTextVarPatterns['hiddensection'] =
>> '/\\[\\[!#[\\d\\w]+\\]\\].*\\[\\[!#[\\d\\w]+end\\]\\]/s';
>>
>
> try this:
>
> $PageTextVarPatterns['[[#!name]]'] =
> "/(\\[\\[#!(\\w[-\\w]*)\\]\\](?: *\n)?)(.*?)(\\[\\[#!\\2end\\]\\])/s";
>
>
cool that works,thanks
> this just adds the ! to the [[#anchor]] PTV definition I use with
> FoxEdit.
>
> Note that [[#!name]]....[[#!nameend]] sections are not anchored
> sections, so any markups used to include an anchored pagesection
> will not work on these, and the markers can't be used as anchors.
>
>
> ~Hans
>
>
hm, I hope that has no trawbacks, but I guess I can do evertying what is
possible with anchored sections also with ptv's .. .
More information about the pmwiki-users
mailing list