{
    "content": [
        {
            "type": "text",
            "text": "# pygments (pydoc)\n\n**Summary:** pygments\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (25 lines)\n- **PACKAGE CONTENTS** (20 lines)\n- **FUNCTIONS** (1 lines) — 3 subsections\n  - format (6 lines)\n  - highlight (6 lines)\n  - lex (2 lines)\n- **DATA** (3 lines)\n- **VERSION** (2 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\npygments\n\n### DESCRIPTION\n\nPygments\n~~~~~~~~\n\nPygments is a syntax highlighting package written in Python.\n\nIt is a generic syntax highlighter for general use in all kinds of software\nsuch as forum systems, wikis or other applications that need to prettify\nsource code. Highlights are:\n\n* a wide range of common languages and markup formats is supported\n* special attention is paid to details, increasing quality by a fair amount\n* support for new languages and formats are added easily\n* a number of output formats, presently HTML, LaTeX, RTF, SVG, all image\nformats that PIL supports, and ANSI sequences\n* it is usable as a command-line tool and as a library\n* ... and it highlights even Brainfuck!\n\nThe `Pygments master branch` is installable with ``easyinstall Pygments==dev``.\n\n.. Pygments master branch:\nhttps://github.com/pygments/pygments/archive/master.zip#egg=Pygments-dev\n\n:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.\n:license: BSD, see LICENSE for details.\n\n### PACKAGE CONTENTS\n\nmain\ncmdline\nconsole\nfilter\nfilters (package)\nformatter\nformatters (package)\nlexer\nlexers (package)\nmodeline\nplugin\nregexopt\nscanner\nsphinxext\nstyle\nstyles (package)\ntoken\nunistring\nutil\n\n### FUNCTIONS\n\n#### format\n\nFormat a tokenlist ``tokens`` with the formatter ``formatter``.\n\nIf ``outfile`` is given and a valid file object (an object\nwith a ``write`` method), the result will be written to it, otherwise\nit is returned as a string.\n\n#### highlight\n\nLex ``code`` with ``lexer`` and format it with the formatter ``formatter``.\n\nIf ``outfile`` is given and a valid file object (an object\nwith a ``write`` method), the result will be written to it, otherwise\nit is returned as a string.\n\n#### lex\n\nLex ``code`` with ``lexer`` and return an iterable of tokens.\n\n### DATA\n\nall = ['lex', 'format', 'highlight']\ndocformat = 'restructuredtext'\n\n### VERSION\n\n2.11.2\n\n### FILE\n\n/usr/lib/python3/dist-packages/pygments/init.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "pygments",
        "section": "",
        "mode": "pydoc",
        "summary": "pygments",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 25,
                "subsections": []
            },
            {
                "name": "PACKAGE CONTENTS",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "format",
                        "lines": 6
                    },
                    {
                        "name": "highlight",
                        "lines": 6
                    },
                    {
                        "name": "lex",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}