Updated 3/22/09: SnippetManager now copies the snippet to the clipboard when selected.
I’ve gotten a lot requests for the snippet manager I used at my Mix08 session.
The first incarnation of this application was done by Nick Kramer (Thanks Nick!). I’ve tweaked it and added a WPF frontend.
How do I use it?
- To use a snippet, drag the title of the snippet to the desired target app.
- In order to move the app around, drag the black bottom portion of the window.
- The topmost checkbox and load/close buttons work as you would expect.
If desired, you can start the app from the commandline:
snippetmanager.exe /notontop [snippetsfile] [snippetsfile] …
where /notontop indicates that the snippet manager should start out NOT being topmost.
What is the format of the snippet file?
The format of the snippet file is:
|///////////////////////////////||Separates the contents of one snippet from another snippet.|
|// First Snippet Title||Indicates what the “title” for a snippet should be.
(Note: if a snippet does not have a title, the first line of the snippet appears in the snippet manager.)
|————————–||Separates sections of snippets and restarts numbering of snippets.|
|partial line:<content>||Should treat <content> as part of an existing line. (i.e. Snippet should not include a line break at its end.)|
|<other>||Any other line is treated as the content of a snippet|
Given the “exactness” of the file format, I’d recommend always copying and editing the sample snippet file.
The sample snippet file (which was used in the above screen shot) is included in the zip and shown below: