module documentation

Module that implements the default filter.

Unknown Field: copyright
Copyright 2006-2021 by the Pygments team, see AUTHORS.
Unknown Field: license
BSD, see LICENSE for details.
Class ​Filter Default filter. Subclass this class or use the simplefilter decorator to create own filters.
Class ​Function​Filter No summary
Function apply​_filters 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:
def apply_filters(stream, filters, lexer=None):
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.
def simplefilter(f):

Decorator that converts a function into a filter:

@simplefilter
def lowercase(self, lexer, stream, options):
    for ttype, value in stream:
        yield ttype, value.lower()