Other document type support

Latex document, hence pdf, prepends the filename to the snippet.
While other document types simply writes the snippet as literal block.