Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions
pygments.filter Namespace Reference

Classes

class  Filter
 
class  FunctionFilter
 

Functions

 apply_filters (stream, filters, lexer=None)
 
 simplefilter (f)
 

Detailed Description

    pygments.filter
    ~~~~~~~~~~~~~~~

    Module that implements the default filter.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.

Function Documentation

◆ apply_filters()

pygments.filter.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`.

◆ simplefilter()

pygments.filter.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()