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.

If there's a language missing from the list of enabled ones that you would like turned on, then please just post a comment and I'll be happy to look into it.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".

More information about formatting options

CAPTCHA
Declare your humanity!
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.