How to install and use AutoSnippet – automatic snippet generator for HTML and JavaScript
- Download Autosnippet with examples and Dependencies ( you can download Autosnippet only and download SyntaxHighlighter and jQuery from their sites)
- Add syntaxhighlighter, Jquery and jquery.autosnippet-1.0.js (Autosnippet script) to your page:
- Create the source div and target div for the snippet:
HTML and javascript goes here
- Write your code in the source div
some complex code
- Optionally, For Snippet only – wrap the source div with the target div
some complex code
Further documentation and Configuration can be found in SyntaxHighlighter and jQuery websites.