PmPygment-Talk

Summary: Talk page for PmPygment.
Maintainer: ccox
Users: (View? / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

Hi,

I found some problems with this recipe, and have uploaded a modified version: pmpygment-2017-12-24.phpΔ

Changes are as follows:

  • Update: updated for compatibility PHP 7.2
  • Bug fix: the config variables work now (they didn’t, before)
  • Bug fix: <:vspace> tags no longer show up in the code
  • Change: parameters to the directive must be all on one line now (this is so that the recipe is compatible with, e.g., PastebinEmbed)
  • Compatibility: Added a config variable $PmPygmentSecureAttachments; if set to 1, works properly with SecureAttachments (which otherwise is not the case)

Said Achmiz December 24, 2017, at 07:41 PM


I get this error here:

 [Sat Jun 25 10:39:20.673250 2016] [:error] [pid 4715] [client x.x.x.x:36247] PHP Warning:  unlink(upl/Dkkb/pmpygment-6b8983885f54ee767acd25249115e655.html): No such file or directory in /home/www/html/wiki/cookbook/pmpygment.php on line 127, referer: (...)

(I did check permissions)

and I would like to know which langs are supported.

-drdaan June 25, 2016, at 05:50 AM

So, I'm guessing that pmpygmentize is erroring. Can you call it standalone from the command line and get that to produce reasonable results?

ccox

Also, to get languages supported, from the command line of your systems do: pygmentize -L

ccox

Talk page for the PmPygment recipe (users?).