1. Paste code snippet

Code snippets like figures are a dedicated content item in Helpinator. We made it that way to apply syntax highlight and also because in some of the outputs (Leanpub, DITA for example) code snippets must be marked correspondingly. You can paste code snippets right into the topic editor using a dedicated command and it will create a corresponding snippet in the library.

Pasted code snippet

2. Slice code snippet

Sometimes you need to create a set of snippets from the same source file and it may take quite a time to crete them one-by-one. "Slice..." command makes it faster - select text, enter snippet id and click "Create", then select another portion of text and so on...

Slice code sample