Title: Reconsider passing line numbering variable to python
Last modified: August 21, 2016

---

# Reconsider passing line numbering variable to python

 *  [lewekleonek](https://wordpress.org/support/users/lewekleonek/)
 * (@lewekleonek)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/reconsider-passing-line-numbering-variable-to-python/)
 * 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://wordpress.org/plugins/wpygments/](http://wordpress.org/plugins/wpygments/)

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

 * ![](https://s.w.org/plugins/geopattern-icon/wpygments.svg)
 * [WPygments](https://wordpress.org/plugins/wpygments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpygments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpygments/)
 * [Active Topics](https://wordpress.org/support/plugin/wpygments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpygments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpygments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [lewekleonek](https://wordpress.org/support/users/lewekleonek/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/reconsider-passing-line-numbering-variable-to-python/)
 * Status: not resolved