Re: [pmwiki-users] Syntax highlighting recipes

2019-07-30 Thread Johan Bengtsson
On Tue, 23 Jul 2019, Dominique Faure wrote: Hi, Please wait a day or two a fixed release. Sorry for the extra delay for it, but the last version just released is now better handling the source code syntax highlighting, providing the full file content when the generated dependencies data

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-23 Thread Dominique Faure
Hi, > Please wait a day or two a fixed release. Sorry for the extra delay for it, but the last version just released is now better handling the source code syntax highlighting, providing the full file content when the generated dependencies data couldn't be written to the cookbook folder. Extra

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-16 Thread Dominique Faure
> Ok, I got the link now after specifiying a mime type. > > Ufortunately it didn't work after clicking the link: > > PmWiki can't process your request > > # Unable to generate CodeMirror mode dependencies file >

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-16 Thread Johan Bengtsson
On Tue, 16 Jul 2019, Dominique Faure wrote: I just got 1 hour free to make some tests updating SourceBlock to PHP7 with Github's GeSHI release v1.0.9 and found that the highlighter wasn't fully compliant: Deprecated: Function create_function() is deprecated in

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-16 Thread Dominique Faure
I just got 1 hour free to make some tests updating SourceBlock to PHP7 with Github's GeSHI release v1.0.9 and found that the highlighter wasn't fully compliant: Deprecated: Function create_function() is deprecated in C:\inetpub\wwwroot\pmwiki-2.2.116\cookbook\geshi\geshi.php on line 4698

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-16 Thread Johan Bengtsson
On Mon, 15 Jul 2019, Dominique Faure wrote: Also could not get syntax highlighting to work, there seems to be some sort of setup procedure required, but I can't find any docs that clearly explains it. Once the recipe own files and the CodeMirror distribution have been put in the proper

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-16 Thread Johan Bengtsson
On Tue, 16 Jul 2019, Peter Kay wrote: Sorry, let me go all the way back to the top:  what is the "preg_replace problem" you are seeing? Stuff like this that fills up our logs (if we don't disable the warnings...)...: [Tue Jul 16 09:00:59 2019] [error] [client 129.16.129.210] PHP

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Dominique Faure
Le 15 juil. 2019 4:15 PM, "Peter Kay" a écrit : Can CodeMirror adjust its markup? Look for (:source...:) instead of (:code...:)? That might be an option as well, and might be worth checking. IMHO, this should be written as an extra script (as already done with the code highlighter for the

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Dominique Faure
> On https://www.pmwiki.org/wiki/Cookbook/SourceBlock-Talk author which > I believe is on this list says he is waiting for geshi to be updated for php > 7.2... You're right, I was the one who wrote this recipe. For the record, I wasn't aware that GeSHI had been forked on github when I answered on

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Peter Kay
Sorry, let me go all the way back to the top: what is the "preg_replace problem" you are seeing? --Peter On Mon, Jul 15, 2019 at 4:54 AM Johan Bengtsson wrote: > My employer uses several pmwikis, we are currently using pmwiki-2.2.97 and > php 5.5.18. > > On one of the biggest wikis we are

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Dominique Faure
> Also could not get syntax highlighting to work, there seems > to be some sort of setup procedure required, but I can't find any docs that > clearly explains it. Once the recipe own files and the CodeMirror distribution have been put in the proper places, the setup merely consists in trying to

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Johan Bengtsson
On Mon, 15 Jul 2019, Christopher Cox wrote: There's always https://www.pmwiki.org/wiki/Cookbook/PmPygment You have to have pygmentize installed on your pmwiki host (script defaults to finding that in /usr/bin/pygmentize) I tried it but couldn't make it work see:

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Johan Bengtsson
On Mon, 15 Jul 2019, Peter Kay wrote: GeSHi is abandoned?  It looks like they updated 1.0.9 to avoid the preg_replace /e problem?  Or did I miss something? Well, I'm confused. According to http://qbnz.com/highlighter/ it was updated 2017/05/13 "targeting php 7x". On

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Peter Kay
GeSHi is abandoned? It looks like they updated 1.0.9 to avoid the preg_replace /e problem? Or did I miss something? --Peter On Mon, Jul 15, 2019 at 4:54 AM Johan Bengtsson wrote: > My employer uses several pmwikis, we are currently using pmwiki-2.2.97 and > php 5.5.18. > > On one of the

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Christopher Cox
There's always https://www.pmwiki.org/wiki/Cookbook/PmPygment You have to have pygmentize installed on your pmwiki host (script defaults to finding that in /usr/bin/pygmentize) I wrote it and use it. On 7/15/19 10:35 AM, Johan Bengtsson wrote: On Mon, 15 Jul 2019, Dominique Faure wrote:

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Johan Bengtsson
On Mon, 15 Jul 2019, Dominique Faure wrote: Hi, Feel free to have a try with the CodeMirror recipe (https://pmwiki.org/wiki/Cookbook/CodeMirror). Tried it, unfortunately it seems to break Unix style copy/paste with the mouse in the editor... Also could not get syntax highlighting to work,

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Peter Kay
Can CodeMirror adjust its markup? Look for (:source...:) instead of (:code...:)? That might be an option as well, and might be worth checking. On Mon, Jul 15, 2019 at 9:56 AM Johan Bengtsson wrote: > On Mon, 15 Jul 2019, Dominique Faure wrote: > > > Hi, > > Feel free to have a try with the

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Johan Bengtsson
On Mon, 15 Jul 2019, Dominique Faure wrote: Hi, Feel free to have a try with the CodeMirror recipe (https://pmwiki.org/wiki/Cookbook/CodeMirror). Thanks for the tip, I'll try that! When I managed to make work CodeMirror in rendering-only mode for all the extra languages, I found it a nice

Re: [pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Dominique Faure
Hi, Feel free to have a try with the CodeMirror recipe ( https://pmwiki.org/wiki/Cookbook/CodeMirror). When I managed to make work CodeMirror in rendering-only mode for all the extra languages, I found it a nice alternative to SourceBlock and its un-maintained GeSHI. It shouldn't be too

[pmwiki-users] Syntax highlighting recipes

2019-07-15 Thread Johan Bengtsson
My employer uses several pmwikis, we are currently using pmwiki-2.2.97 and php 5.5.18. On one of the biggest wikis we are using the SourceBlock recipe (https://www.pmwiki.org/wiki/Cookbook/SourceBlock). But it has the preg_replace problem. I don't know if it's possible to fix that and make