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


_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to