Fix handling of snippets containing line breaks.
Add preliminary support for viewing the raw source code.