You need to wrap your code in the [@...code...@] escape sequence, or
precede every line with one or more spaces.
The page mentioned that highlighting works for preformatted blocks, but
not prominently enough. I've added cross-links to and from
BasicEditing#preformatted :
On 13/11/2019 15:56, Petko Yotov wrote:
Core numbered headings currently depend on the table of contents, but
that should be refactored to become an independent function. Now, if
the sections are less than 3 (configurable), there is no TOC and the
headings are not numbered.
For the next
You have a function placed inside another function, so when the outer
function is called for a second time, it tries to redefine the inner
function again. This is forbidden, and if you check your error log, you
will see something like:
Fatal error: Cannot redeclare UR_exists() (previously
Many thanks, I really had no idea and this is really strange as the
function used to work when I was using it a while ago.
In any case, you're the boss, it solved it.
Cheers,
Philippe
On Wed, 13 Nov 2019 at 19:38, Petko Yotov <5...@5ko.fr> wrote:
> You have a function placed inside another
Thanks for sharing this.
$prefix=PSS($m[1]);
$text=PSS($m[2]);
You need to remove the PSS() calls from the new version. PSS() strips
one level of backslashes. It was previously needed in markup
replacements because preg_replace() with /eval added one level of
backslashes. The new PHP
thank you. I will consider the new core feature, so maybe the recipe is
made superfluous for me.
Am Mi., 13. Nov. 2019 um 15:56 Uhr schrieb Petko Yotov <5...@5ko.fr>:
> Thanks for sharing this.
>
> > $prefix=PSS($m[1]);
> > $text=PSS($m[2]);
>
> You need to remove the PSS() calls from the new
I wanted to have numbered sections in my wiki-page, so I tried the numbered
sections recipe and noticed, it still uses the deprecated "/e" Markup. so I
changed the source with the following diff's:
-
--- Downloads/archive/pmwiki/numberedsections.php
+++ numberedsections.php
On Wed, 13 Nov 2019, Petko Yotov wrote:
You need to wrap your code in the [@...code...@] escape sequence, or precede
every line with one or more spaces.
The page mentioned that highlighting works for preformatted blocks, but not
prominently enough. I've added cross-links to and from
I've added this for 2.2.121. There will be a new pseudovariable
{$$EachCount} similar to {$$PageGroupCount} that will contain the number
of pages in the current "each" loop.
I'm not sure if the name {$$EachCount} is good, could be
{$$CurrentLoopCount} or something else, if anyone has ideas,