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

8 / 8

enhancement

2 / 4

Download

Download the zipped source from here.

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

15931 by rjollos on 2016-10-19 19:07:30
0.4: Pass rev as parameter

Fixes a regression in r15745.

Patch by ebouaziz@…

Fixes #6009.

15745 by rjollos on 2016-09-02 03:36:04
0.3: Properly construct the href

Patch by ichael-dev@….

Fixes #6009.

15744 by rjollos on 2016-09-02 02:56:21
0.2: Fix ImportError due to missing __init__.py

Fixes #12858.

(more)

Author/Contributors

Author: chrisheller
Maintainer: Chris Heller
Contributors:

Last modified 6 weeks ago Last modified on Oct 19, 2016, 11:57:19 PM