summaryrefslogtreecommitdiff
path: root/doc/docs/plugins.rst
Commit message (Collapse)AuthorAgeFilesLines
* Switch from pkg_resources to importlib.metadata (#2155)Jean Abou-Samra2022-06-041-5/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Switch from pkg_resources to importlib.metadata importlib.metadata is a standard library replacement for pkg_resources, available starting with Python 3.8. It is faster than pkg_resources. This lets the plugin interface use it when available, i.e. on Python 3.8 and later. On earlier Python, it uses the importlib_metadata PyPI backport if available, and finally falls back on pkg_resources. setup.cfg gains an extra called plugins, which can allow a project to install "pygments[plugins]" in order to ensure that plugins support is present even if installed with older Python versions. Timings for lexing an empty file with a lexer from a random plugin: Before: real 0m0,238s user 0m0,210s sys 0m0,029s After: real 0m0,141s user 0m0,125s sys 0m0,017s Fixes #2116, #2126
* Update many links to use HTTPS and skip redirectsKurt McKee2019-12-181-2/+2
|
* merge default into stableGeorg Brandl2016-01-171-0/+93