reStructuredText Support in TracTrac supports using reStructuredText (RST) as an alternative to wiki markup in any context WikiFormatting is used. From the reStucturedText webpage:
RequirementsNote that to activate RST support in Trac, the python docutils package must be installed. If not already available on your operating system, you can download it at the RST Website. More information on RST
Using RST in TracTo specify that a block of text should be parsed using RST, use the rst processor. TracLinks in reStructuredText
Syntax highlighting in reStructuredTextThere is a directive for doing TracSyntaxColoring in ReST as well. The directive is called code-block Example {{{ #!rst .. code-block:: python class Test: def TestFunction(self): pass }}} Will result in the below. .. code-block:: python class Test: def TestFunction(self): pass ExampleThe example below should be mostly self-explanatory: {{{ #!rst FooBar Header ============= reStructuredText is **nice**. It has its own webpage_. A table: ===== ===== ====== Inputs Output ------------ ------ A B A or B ===== ===== ====== False False False True False True False True True True True True ===== ===== ====== RST TracLinks ------------- See also ticket |#42|. .. |#42| trac:: #42 .. _webpage: http://docutils.sourceforge.net/rst.html }}} Results in: FooBar Header ============= reStructuredText is **nice**. It has its own webpage_. A table: ===== ===== ====== Inputs Output ------------ ------ A B A or B ===== ===== ====== False False False True False True False True True True True True ===== ===== ====== RST TracLinks ------------- See also ticket |#42|. .. |#42| trac:: #42 .. _webpage: http://docutils.sourceforge.net/rst.html See also: WikiRestructuredTextLinks, WikiProcessors, WikiFormatting |