<commit_before># [Prism](http://prismjs.com/)

Prism is a lightweight, robust, elegant syntax highlighting library. It's a spin-off project from [Dabblet](http://dabblet.com/).

You can learn more on http://prismjs.com/.

Why another syntax highlighter?: http://lea.verou.me/2012/07/introducing-prism-an-awesome-new-syntax-highlighter/#more-1841<commit_msg>Add differences to the ‘README.md’ file<commit_after># [Prism](http://prismjs.com/)

Apiary's fork of [Prism](http://prismjs.com/).

Prism is a lightweight, robust, elegant syntax highlighting library. It's a spin-off project from [Dabblet](http://dabblet.com/).

## Differences

* AMD support *(RequireJS)*
* Optional encoding *(`_.util.encode`)*
* Parallelism with Web Workers *(if available)*
* No automatic highlighting, you have to use the `highlight` method
* Low-level API *(`tokenize`, `Token`, ...)*

# API

## `highlight(code, grammar, options)`
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.010964912280701754, 'mean_word_length': 4.852564102564102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5227437', 'n_tokens_mistral': 315, 'n_tokens_neox': 296, 'n_words': 84}