[pmwiki-users] fox: custom ptvfmt

Hans design5 at softflow.co.uk
Mon Mar 3 04:35:46 CST 2008

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";

this just adds the ! to the [[#anchor]] PTV definition I use with

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.


More information about the pmwiki-users mailing list