Add line numbers to code snippets.

This commit closes #49.