Notepad Style Syntax highlighting Plugin With jQuery syntaxPP - Download Notepad++ Style Syntax highlighting Plugin With jQuery - syntaxPP

Download Notepad++ Style Syntax highlighting Plugin With jQuery – syntaxPP

Posted on

This time I will share jQuery Plugin and tutorial about Notepad++ Style Syntax highlighting Plugin With jQuery – syntaxPP, hope it will help you in programming stack.

Notepad Style Syntax highlighting Plugin With jQuery syntaxPP - Download Notepad++ Style Syntax highlighting Plugin With jQuery - syntaxPP
File Size: 3.91 KB
Views Total: 1203
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

syntaxPP is a very small jQuery based code syntax highlighter that display your source code in different colors as you seen in the famous Notepad++ application.

How to use it:

1. Load the latest jQuery library together with the jQuery syntaxPP plugin’s JS and CSS files in the document.

1 <link href="syntaxPP.css" rel="stylesheet">
2 <script src="http://code.jquery.com/jquery.min.js"></script>
3 <script src="syntaxPP.jquery.js"></script>

2. Add your code snippets into the pre code tags.

1 <pre>
2   <code>
3     ...
4   </code>
5 </pre>

3. Call the function on the code tag and done.

1 $('pre code').syntaxPP();

4. Specify the file name displayed in the header tab.

1 $('pre code').syntaxPP({
2   filename:'index.html'
3 });

This awesome jQuery plugin is developed by Dotcodes. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net