Lightweight Code Syntax Highlighting Script - Rainbow

File Size: 175 KB
Views Total: 1623
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Lightweight Code Syntax Highlighting Script - Rainbow

Rainbow is a lightweight (~1.4 KB gzip),easy to use, and extendable Javascript code syntax highlighting library that allows you to style your code exactly how you want via CSS.

Basic Usage (HTML CODES):

1. Include the theme CSS:

<link href="../themes/blackboard.css" rel="stylesheet" type="text/css" media="screen">

2. Insert your codes

<code data-language="html">

3. Include the libraries before </body>

<script src="../js/rainbow.js"></script>
<script src="../js/language/generic.js"></script>
<script src="../js/language/html.js"></script>
<script src="../js/language/css.js"></script>
<script src="../js/language/php.js"></script>
<script src="../js/language/javascript.js"></script>

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