This is a collection of "Today I learnt how to …​" memos. Mostly as a reminder to myself how to do something/ how I arrived at solution/ how I found something/ an interesting fact etc.,. YMMV.

This might be even better when used to implement this idea —  "Tell me about a concept you learned recently that’s not a library or tool." — https://twitter.com/shajra

ConTeXt

Syntax Highlighting in ConTeXt

% A simple ConTeXt file showing how to use syntax highlighting
\usemodule[vim]
\definevimtyping [PYTHON]  [syntax=python]

\starttext
{\tfa A Simple Hello world program in Python}
\blank[2*big]
The following program should be syntax highlighted.
\blank[1*medium]
\startPYTHON
def main():
    for i in range(10):
        print i

if __name__ == '__main__':
    main()
\stopPYTHON
\stoptext

Convert 1.tex to 1.pdf with:

context 1.tex

The rendered PDF looks like this:

PDF rendering of Syntax highlighted code