7,392 32

First Snippet: How to play with Snip2Code

This is the first example of a snippet: 
- the title represents in few words which is the exact issue the snippet resolves; it can be something like the name of a method;
- the description (this field) is an optional field where you can add interesting information regarding the snippet; something like the comment on the head of a method;
- the code (the field below) is the actual content of the snippet: the stuff you want to copy-and-paste wherever you need; something like the body of a method.
Then, you want to specify the visibility of the snippet, i.e. who can see it: the access to your precious pearl of wisdom may be restricted just to yourself, or to the entire world. Moreover, if you belong to some groups (you can even create your own groups!), the snippet may be shared just with the belongers of such group, i.e. your colleagues, team-mates, or just friends!
Optionally, you may want to add some tags, simple words that identify the snippet for its fast retrieval in a future search, and eventually properties, key-value pairs that store the most important features of the snippet, like the Language in which it is written, the OS/Architecture where the code can run, the language version required to support the snippet, etc. Some of them are automatically guessed by our powerful semantic engine, but obviously your knowledge cannot be completely replaced!
As an example, this snippet has the property ".NETFramework=1.0", which allows you to retrieve it with the search: "singleton C# .NETFramework<=2.0"
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
/* place here the actual content of your snippet. It should be code or pseudo-code. The less dependencies from external stuff, the better! */
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus