<commit_before>hijs
====

> hijs is a dead-simple syntax highlighter for JavaScript code on the browser.

By default, it highlights everything inside `<code>` blocks.

If you have command-line snippets, such as:

    $ ls -l > /dev/null

it will skip those, cause they ain't no JavaScript.

example
-------

![screenshot](http://files.droplr.com.s3.amazonaws.com/files/36156834/1bgj3c.Screen%20shot%202010-06-12%20at%2016:43:02.png)

philosophy
----------

hijs is a simple solution to a potentially complicated problem. It won't
fit all your needs, but if what you're trying to achieve is simple enough,
hijs might be the tool for you.

styling
-------

hijs wraps tokens in `<span>` tags. You can style them like so:

    code .keyword              { font-weight: bold }
    code .string, code .regexp { color: green }
    code .class, code .special { color: blue }
    code .number               { color: pink }
    code .comment              { color: grey }

usage
-----

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

more info
---------

**RTFC**
<commit_msg>(doc) README update<commit_after>hijs
====

> hijs is a dead-simple syntax highlighter for JavaScript code on the browser.

By default, it highlights everything inside `<code>` blocks.

If you have command-line snippets, such as:

    $ ls -l > /dev/null

it will skip those, cause they ain't no JavaScript.

usage
-----

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

example
-------

Code extract from http-console:

![screenshot](http://files.droplr.com.s3.amazonaws.com/files/36156834/1bgj3c.Screen%20shot%202010-06-12%20at%2016:43:02.png)

philosophy
----------

hijs is a simple solution to a potentially complicated problem. It won't
fit all your needs, but if what you're trying to achieve is simple enough,
hijs might be the tool for you.

styling
-------

hijs wraps tokens in `<span>` tags. You can style them like so:

    code .keyword              { font-weight: bold }
    code .string, code .regexp { color: green }
    code .class, code .special { color: blue }
    code .number               { color: pink }
    code .comment              { color: grey }

more info
---------

**RTFC**

{'fraction_non_alphanumeric': 0.1330851558864588, 'fraction_numerical': 0.030711959050721264, 'mean_word_length': 2.5893155258764606, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '2688597', 'n_tokens_mistral': 732, 'n_tokens_neox': 677, 'n_words': 244}