Home | Trees | Indices | Help |
|
---|
|
object --+ | XmlComponent --+ | DIV --+ | CODE
Displays code in HTML with syntax highlighting. Args: language: indicates the language, otherwise PYTHON is assumed link: can provide a link styles: for styles Examples: {{=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 |
|
|||
Inherited from |
|
generates the xml for this component.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 16 02:36:14 2014 | http://epydoc.sourceforge.net |