class VisibleWhitespaceFilter(Filter):
Convert tabs, newlines and/or spaces to visible characters.
Options accepted:
spaces
: string or booltabs
: string or boolspaces
, but the default replacement character is »
(unicode RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK). The default value
is False. Note: this will not work if the tabsize
option for the
lexer is nonzero, as tabs will already have been expanded then.tabsize
: inttabs
option), this
is the total number of characters that a tab should be expanded to.
The default is 8.newlines
: string or boolspaces
, but the default replacement character is ¶
(unicode PILCROW SIGN). The default value is False.wstokentype
: boolWhitespace
token type. This allows
styling the visible whitespace differently (e.g. greyed out), but it can
disrupt background colors. The default is True.Method | __init__ |
Undocumented |
Method | filter |
Undocumented |
Instance Variable | wstt |
Undocumented |
Inherited from Filter
:
Instance Variable | options |
Undocumented |