class SvgFormatter(Formatter):
Format tokens as an SVG graphics file. This formatter is still experimental. Each line of code is a <text> element with explicit x and y coordinates containing <tspan> elements with the individual token styles.
By default, this formatter outputs a full SVG document including doctype declaration and the <svg> root element.
Additional options accepted:
nowrap
fontfamily
and fontsize
options are ignored. Defaults to False.fontfamily
fontsize
linenos
linenostart
linenostep
linenowidth
xoffset
yoffset
ystep
spacehack
Method | __init__ |
Undocumented |
Method | _get_style |
Undocumented |
Method | format_unencoded |
Format tokensource, an iterable of (tokentype, tokenstring) tuples and write it into outfile. |
Class Variable | aliases |
Undocumented |
Class Variable | filenames |
Undocumented |
Class Variable | name |
Undocumented |
Instance Variable | _stylecache |
Undocumented |
Instance Variable | fontfamily |
Undocumented |
Instance Variable | fontsize |
Undocumented |
Instance Variable | linenos |
Undocumented |
Instance Variable | linenostart |
Undocumented |
Instance Variable | linenostep |
Undocumented |
Instance Variable | linenowidth |
Undocumented |
Instance Variable | nowrap |
Undocumented |
Instance Variable | spacehack |
Undocumented |
Instance Variable | xoffset |
Undocumented |
Instance Variable | yoffset |
Undocumented |
Instance Variable | ystep |
Undocumented |
Inherited from Formatter
:
Method | format |
Format tokensource, an iterable of (tokentype, tokenstring) tuples and write it into outfile. |
Method | get_style_defs |
Return the style definitions for the current style as a string. |
Class Variable | unicodeoutput |
Undocumented |
Instance Variable | encoding |
Undocumented |
Instance Variable | full |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | style |
Undocumented |
Instance Variable | title |
Undocumented |