Partial includes of files in wiki pages
This macro allows source files to be partially or wholly included in other wiki content.
Include entire file:
Includes line 20-50 inclusive:
[[IncludeSource(trunk/proj/file.py, start=20, end=50)]]
Includes last 30 lines of file at revision 1200:
[[IncludeSource(trunk/proj/file.py, start=-30, rev=1200)]]
Include entire file but formatted plain:
If you have any issues, create a new ticket.
Download the zipped source from here.
General instructions on installing Trac plugins can be found on the TracPlugins page.
trac.ini file, edit the components section to add the entry as follows:
[components] includesource.* = enabled
- 15931 by rjollos on 2016-10-19 19:07:30
Fixes a regression in r15745.
Patch by ebouaziz@…
- 15745 by rjollos on 2016-09-02 03:36:04
0.3: Properly construct the
Patch by ichael-dev@….
- 15744 by rjollos on 2016-09-02 02:56:21
ImportErrordue to missing