module documentation
pygments.filter ~~~~~~~~~~~~~~~ Module that implements the default filter. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details.
Class |
|
Default filter. Subclass this class or use the `simplefilter` decorator to create own filters. |
Class |
|
Abstract class used by `simplefilter` to create simple function filters on the fly. The `simplefilter` decorator automatically creates subclasses of this class for functions passed to it. |
Function | apply |
Use this method to apply an iterable of filters to a stream. If lexer is given it's forwarded to the filter, otherwise the filter receives `None`. |
Function | simplefilter |
Decorator that converts a function into a filter:: |