Home | Trees | Indices | Help |
|
---|
|
object --+ | XmlComponent --+ | DIV --+ | CODE
displays code in HTML with syntax highlighting.
:param attributes: optional attributes:{{=CODE("print 'hello world'", language='python', link=None, counter=1, styles={}, highlight_line=None)}}
supported languages are "python", "html_plain", "c", "cpp", "web2py", "html". The "html" language interprets {{ and }} tags as "web2py" code, "html_plain" doesn't.
if a link='/examples/global/vars/' is provided web2py keywords are linked to the online docs.
the counter is used for line numbering, counter can be None or a prompt string.
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Thu Aug 4 00:47:01 2011 | http://epydoc.sourceforge.net |