--- author: '' category: '' date: 2012/07/07 23:51 description: '' link: '' priority: '' slug: new-nikola-feature-code-listings tags: python, nikola title: 'New Nikola Feature: code listings' type: text updated: 2012/07/07 23:51 url_type: '' --- This is a new feature in `Nikola `_, my static website and blog generator. It's aimed at showing *pieces* of files in the posts, and giving you a link to the full file, does reasonable syntax highlight thanks to pygments, and the syntax for embedding in your posts is not excessively awful, so I can use it for some of my tutorial / book projects. Here's an example:: .. listing:: md.py python :start-at: def compile_html :end-before: output = .. listing:: md.py python :start-at: def compile_html :end-before: output = This is not merged into master yet, but should be soon.