| 8 | |
| 9 | Include entire file: |
| 10 | |
| 11 | {{{ |
| 12 | [[IncludeSource(trunk/proj/file.py)]] |
| 13 | }}} |
| 14 | |
| 15 | Includes line 20-50 inclusive: |
| 16 | |
| 17 | {{{ |
| 18 | [[IncludeSource(trunk/proj/file.py, start=20, end=50)]] |
| 19 | }}} |
| 20 | |
| 21 | Includes last 30 lines of file at revision 1200: |
| 22 | |
| 23 | {{{ |
| 24 | [[IncludeSource(trunk/proj/file.py, start=-30, rev=1200)]] |
| 25 | }}} |
| 26 | |
| 27 | Include entire file but formatted plain: |
| 28 | |
| 29 | {{{ |
| 30 | [[IncludeSource(trunk/proj/file.py, mimetype=text/plain)]] |
| 31 | }}} |
39 | | == Example |
40 | | |
41 | | {{{ |
42 | | # include entire file |
43 | | [[IncludeSource(trunk/proj/file.py)]] |
44 | | |
45 | | # includes line 20-50 inclusive |
46 | | [[IncludeSource(trunk/proj/file.py, start=20, end=50)]] |
47 | | |
48 | | # includes last 30 lines of file at revision 1200 |
49 | | [[IncludeSource(trunk/proj/file.py, start=-30, rev=1200)]] |
50 | | |
51 | | # include entire file but formatted plain |
52 | | [[IncludeSource(trunk/proj/file.py, mimetype=text/plain)]] |
53 | | }}} |
54 | | |