• WPygements (1.1.2) appears to be passing line numbering variable as either false or true to python code, which breaks it, for “inline”, “table”, or “false” is expected.
    I think that defaulting “true” to “inline” would be okay.

    Also – table version of line numbering is not really panning out with the latest WordPress version; and that is after I fixed-up the PHPygments.php file to actually pass either “table” or “inline” to the python code, by commenting out the following line:
    $linenumbers = $linenumbers ? "True" : "False";
    This was just to prove that python parses the files and returns the output file with line numbers.

    http://ww.wp.xz.cn/plugins/wpygments/

The topic ‘Reconsider passing line numbering variable to python’ is closed to new replies.