I have asked a question related to web2py—an open-source Python web-framework—that includes a code snippet.

Unfortunately it didn't syntax highlight by default, so—following the docs—I added the following to precede the code: <!-- language: lang-py -->

Unfortunately it had no affect. Please fix this bug.

(For evidence; see my question: Generate a nested CRUD form)


You just needed a blank line after the <!-- language: lang-py -->. :)

  • Quick aside for the 11 minutes until I can accept your answer: how would I go about getting Python added to the tag inference for web2py?
    – A T
    May 14 '12 at 15:00
  • 1
    @A.T. Normally, you'd just make a meta post about it or flag a question and ask a moderator to set it up. I went ahead and just set it in this case, though. Seems straightforward. :)
    – Adam Lear StaffMod
    May 14 '12 at 15:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .