wiki:IncludeSourcePartialPlugin

Partial includes of files in wiki pages

Description

This macro allows source files to be partially or wholly included in other wiki content.

Include entire file:

[[IncludeSource(trunk/proj/file.py)]]

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:

[[IncludeSource(trunk/proj/file.py, mimetype=text/plain)]]

Bugs/Feature Requests

Existing bugs and feature requests for IncludeSourcePartialPlugin are here.

If you have any issues, create a new ticket.

defect

9 / 9

enhancement

2 / 4

task

2 / 2

Download

Download the zipped source from here.

The plugin is also available on ​PyPI.

Source

You can check out IncludeSourcePartialPlugin from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Configuration

In your trac.ini file, edit the components section to add the entry as follows:

[components]
includesource.* = enabled

Recent Changes

17686 by ttressieres on 2020-03-23 21:44:33
add "framework" tag to publish on PyPI (see #13692)
17685 by ttressieres on 2020-03-22 17:59:00
update setup.py (add license & readme files) to contribute on PyPI (fix 13692)
17684 by ttressieres on 2020-03-22 16:55:20
apply patch to adapt plugin to Trac 1.4 (fix #13730)
(more)

Author/Contributors

Author: chrisheller
Maintainer: ttressieres
Contributors:

Last modified 12 days ago Last modified on Mar 25, 2020, 10:36:09 PM