Re: [pmwiki-users] highlight.js problems

2019-11-13 Thread Petko Yotov
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 :

Re: [pmwiki-users] Numbered Sections cookbook recipe

2019-11-13 Thread Petko Yotov
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

Re: [pmwiki-users] Double Custom Markup Prevents Page from Loading

2019-11-13 Thread Petko Yotov
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

Re: [pmwiki-users] Double Custom Markup Prevents Page from Loading

2019-11-13 Thread Philippe Krait
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

Re: [pmwiki-users] Numbered Sections cookbook recipe

2019-11-13 Thread Petko Yotov
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

Re: [pmwiki-users] Numbered Sections cookbook recipe

2019-11-13 Thread Hans-Jürgen Godau
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

[pmwiki-users] Numbered Sections cookbook recipe

2019-11-13 Thread Hans-Jürgen Godau
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

Re: [pmwiki-users] highlight.js problems

2019-11-13 Thread Johan Bengtsson
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

Re: [pmwiki-users] Any way to get page counts with breaks based on a PTV?

2019-11-13 Thread Petko Yotov
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,