Changes between Version 8 and Version 9 of WikiRestructuredText
- Timestamp:
- Sep 19, 2004, 10:57:36 PM (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRestructuredText
v8 v9 48 48 }}} 49 49 }}} 50 51 === Syntax highlightning in reStructuredText === 52 53 There is a directive for doing TracSyntaxColoring in ReST as well. The directive is called 54 code-block 55 56 Example 57 58 {{{ 59 {{{ 60 #!rst 61 62 .. code-block:: python 63 64 class Test: 65 66 def TestFunction(self): 67 pass 68 69 }}} 70 }}} 71 72 Will result in the below. 73 74 {{{ 75 #!rst 76 77 .. code-block:: python 78 79 class Test: 80 81 def TestFunction(self): 82 pass 83 84 }}} 50 85 51 86