<div dir="ltr"><div>GeSHi is abandoned?  It looks like they updated 1.0.9 to avoid the preg_replace /e problem?  Or did I miss something?</div><div><br></div><div>--Peter<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 15, 2019 at 4:54 AM Johan Bengtsson <<a href="mailto:elijah@chalmers.se">elijah@chalmers.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">My employer uses several pmwikis, we are currently using pmwiki-2.2.97 and php 5.5.18.<br>
<br>
On one of the biggest wikis we are using the  SourceBlock recipe (<a href="https://www.pmwiki.org/wiki/Cookbook/SourceBlock" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Cookbook/SourceBlock</a>).  But it has the preg_replace problem. I don't know if it's possible to fix that and make it php 7.2 compliant?  It is dependant on geshi which is abandoned??<br>
<br>
I have looked at a number of other recipes but most of them seems to have problems one way or the other...<br>
<br>
 <a href="https://www.pmwiki.org/wiki/Cookbook/Beautifier" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Cookbook/Beautifier</a>         # old, preg_replace prob... <br>
<br>
<a href="https://www.pmwiki.org/wiki/Cookbook/PmPygment" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Cookbook/PmPygment</a>  # can't make it work on our wiki...<br>
<br>
<a href="https://www.pmwiki.org/wiki/Cookbook/Precode" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Cookbook/Precode</a>  # no php 7.2?, don't like the syntax,  but seems to work.<br>
<br>
<a href="https://www.pmwiki.org/wiki/Cookbook/SourceBlock" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Cookbook/SourceBlock</a>  #  what we use now, preg_replace prob, geshi probs??<br>
<br>
<a href="https://www.pmwiki.org/wiki/Cookbook/Syntaxlove" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Cookbook/Syntaxlove</a> # buggy...at least for us...<br>
<br>
<a href="https://www.pmwiki.org/wiki/Cookbook/ZCode" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Cookbook/ZCode</a>  # only for external files but not for code in the wiki???<br>
<br>
The ideal solution would perhaps be something with a similar syntax to SourceBlock but using highlight.js...?<br>
<br>
-Johan Bengtsson<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div>