highlight

Source code highlighting!

  1. class Lambda():
  2. pass
  3.  
  4. conf = Lambda()
  5. conf.source = Lambda()
  6. conf.source.highlight = True
  7.  
  8. def clap():
  9. print("*clap*\n" * 3)
  10.  
  11. if conf.source.highlight is True:
  12. clap()

....

Ok that was silly, but you get the idea. Source code highlighting is available (even in the comments):

  1. <code type="python">
  2. ...
  3. </code>

Check out the input filter tips for more information on using the source code highlighter.

Syndicate content