Sketch Syntax Highlighter is a plugin that automatically highlights the syntax of any code snippet, right within Sketch.

This is a great way to control formatting of any code-related text that might appear in your documents if you are doing website or documentation layout for example.

sketch-syntax-highlighter-plugin