Lightweight Syntax Highlighting Library – microlight.js

Category: Javascript , Recommended , Text | May 31, 2016
Author: asvd
Views Total: 348 views
Official Page: Go to website
Last Update: May 31, 2016
License: MIT

Preview:

Lightweight Syntax Highlighting Library – microlight.js

Description:

microlight.js is a lightweight JavaScript library that provides the Syntax Highlighting functionality for any languages to improve code readability.

How to use it:

Just include the microlight.js on the webpage and we’re ready to go.

<script src="microlight.js"></script>

Wrap your code snippets into a DIV element with the CSS class of ‘microlight’.

<div class=microlight> 
  codes here
</div>

That’s it. You can add your custom css styles as this:

.microlight {
  font-family : monospace;
  white-space : pre;
  ...
}

You Might Be Interested In:


Leave a Reply