<commit_before>=====================
Mint - Pygments lexer
=====================

Mint ships with a Pygments_ lexer available in **ext/pygments**.

We haven't included it in the package to avoid requiring Pygments_.

In order to use it you will have to make sure that **pygmint.py**
is in your `sys.path`.

Instantiate the MintLexer when calling highlight as you would with other
schemes::

    from pygmint import MintLexer
    from pygments import highlight
    from pygments.formatters import HtmlFormatter

    code = """
        {{ html5 }}
        @html
            @head
            @body
              @div.class(content)"""

    print highlight(code, MintLexer(), HtmlFormatter())

.. _pygments: http://www.pygments.org<commit_msg>utils.doctype.html5 is better<commit_after>=====================
Mint - Pygments lexer
=====================

Mint ships with a Pygments_ lexer available in **ext/pygments**.

We haven't included it in the package to avoid requiring Pygments_.

In order to use it you will have to make sure that **pygmint.py**
is in your `sys.path`.

Instantiate the MintLexer when calling highlight as you would with other
schemes::

    from pygmint import MintLexer
    from pygments import highlight
    from pygments.formatters import HtmlFormatter

    code = """
        {{ utils.doctype.html5 }}
        @html
            @head
            @body
              @div.class(content)"""

    print highlight(code, MintLexer(), HtmlFormatter())

.. _pygments: http://www.pygments.org
{'fraction_non_alphanumeric': 0.13509933774834437, 'fraction_numerical': 0.001986754966887417, 'mean_word_length': 3.11716621253406, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2063276', 'n_tokens_mistral': 464, 'n_tokens_neox': 410, 'n_words': 155}