| 70 | Also there is support for getting sources from the repository using !CodeExamplePath, !BadCodeExamplePath, !GoodCodeExamplePath. |
| 71 | |
| 72 | {{{ |
| 73 | {{{ |
| 74 | #!GoodCodeExamplePath |
| 75 | #!python |
| 76 | path=gws/main/main_view.py |
| 77 | regex="def update_statusbar" |
| 78 | lines=3 |
| 79 | }}} |
| 80 | }}} |
| 81 | |
| 82 | will be rendered as: |
| 83 | |
| 84 | [[Image(correct_example.png)]] |
| 85 | |
| 86 | Parameters for *Path macros: |
| 87 | * '''path''' - a file in the repository |
| 88 | * '''regex''' - (optional) a regular expression indicates which to start getting |
| 89 | * '''lines''' - (optional) limits number of lines of code to get |
| 90 | |