Changes between Version 5 and Version 6 of IncludeSourcePartialPlugin
- Timestamp:
- Nov 4, 2015, 10:55:08 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IncludeSourcePartialPlugin
v5 v6 1 = !IncludeSource macro allowing partial includes = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = = Description ==3 = Partial includes of files in wiki pages 4 4 5 This is a slightly modified version of the [http://trac.edgewall.org/wiki/MacroBazaar#IncludeSource IncludeSource macro] to allow for partial includes. 5 == Description 6 6 7 This was originally done as a modification to the !IncludeSource macro that was posted on [http://trac.edgewall.org/wiki/MacroBazaar MacroBazaar], but has been brought forward to 0.11. The old version is still posted there.7 This is a modified version of the [http://trac.edgewall.org/wiki/MacroBazaar#IncludeSource IncludeSource macro] to allow for partial includes of files in Trac wiki pages. 8 8 9 Note that the macro in the file is still named !IncludeSource because it provides the existing functionality, but I've titled the hack differently to not conflict with the original. If people like this, it can be merged into the original !IncludeSource to minimize confusion. 9 This was originally done as a modification to the !IncludeSource macro, but has been brought forward to Trac version 0.11. 10 10 11 == Bugs/Feature Requests == 11 Note that the macro in the file is still named !IncludeSource because it provides the existing functionality, but titled differently to not conflict with the original. If people like this, it can be merged into the original !IncludeSource to minimize confusion. 12 13 == Bugs/Feature Requests 12 14 13 15 Existing bugs and feature requests for IncludeSourcePartialPlugin are … … 15 17 16 18 If you have any issues, create a 17 [ http://trac-hacks.org/newticket?component=IncludeSourcePartialPlugin&owner=chrishellernew ticket].19 [/newticket?component=IncludeSourcePartialPlugin new ticket]. 18 20 19 == Download == 21 [[TicketQuery(component=IncludeSourcePartialPlugin&group=type,format=progress)]] 20 22 21 Download the zipped source from [download:includesourcepartialplugin here]. 23 == Download 22 24 23 == Source == 25 Download the zipped source from [export:includesourcepartialplugin here]. 24 26 25 You can check out IncludeSourcePartialPlugin from [http://trac-hacks.org/svn/includesourcepartialplugin here] using Subversion, or [source:includesourcepartialplugin browse the source] with Trac. 27 == Source 26 28 27 === Enabling the plugin === 29 You can check out IncludeSourcePartialPlugin from [/svn/includesourcepartialplugin here] using Subversion, or [source:includesourcepartialplugin browse the source] with Trac. 28 30 29 In `trac.ini`, edit the ''components'' section to add the entry as 30 follows: 31 {{{ 31 == Installation 32 33 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 34 35 == Configuration 36 37 In your `trac.ini` file, edit the components section to add the entry as follows: 38 {{{#!ini 32 39 [components] 33 40 includesource.* = enabled 34 41 }}} 35 42 36 == Example ==43 == Example 37 44 38 Examples: 39 {{{ 40 # include entire file 41 [[IncludeSource(trunk/proj/file.py)]] 45 {{{ 46 # include entire file 47 [[IncludeSource(trunk/proj/file.py)]] 42 48 43 44 49 # includes line 20-50 inclusive 50 [[IncludeSource(trunk/proj/file.py, start=20, end=50)]] 45 51 46 47 52 # includes last 30 lines of file at revision 1200 53 [[IncludeSource(trunk/proj/file.py, start=-30, rev=1200)]] 48 54 49 # include entire file but formatted plain 50 [[IncludeSource(trunk/proj/file.py, mimetype=text/plain)]] 55 # include entire file but formatted plain 56 [[IncludeSource(trunk/proj/file.py, mimetype=text/plain)]] 57 }}} 51 58 52 }}} 53 54 55 == Recent Changes == 59 == Recent Changes 56 60 57 61 [[ChangeLog(includesourcepartialplugin, 3)]] 58 62 59 == Author/Contributors ==63 == Author/Contributors 60 64 61 65 '''Author:''' [wiki:chrisheller] [[BR]] 66 '''Maintainer:''' [[Maintainer]] [[BR]] 62 67 '''Contributors:'''