Changes between Version 5 and Version 6 of IncludeSourcePartialPlugin


Ignore:
Timestamp:
Nov 4, 2015, 10:55:08 AM (8 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • IncludeSourcePartialPlugin

    v5 v6  
    1 = !IncludeSource macro allowing partial includes =
     1[[PageOutline(2-5,Contents,pullout)]]
    22
    3 == Description ==
     3= Partial includes of files in wiki pages
    44
    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
    66
    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.
     7This 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.
    88
    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.
     9This was originally done as a modification to the !IncludeSource macro, but has been brought forward to Trac version 0.11.
    1010
    11 == Bugs/Feature Requests ==
     11Note 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
    1214
    1315Existing bugs and feature requests for IncludeSourcePartialPlugin are
     
    1517
    1618If you have any issues, create a
    17 [http://trac-hacks.org/newticket?component=IncludeSourcePartialPlugin&owner=chrisheller new ticket].
     19[/newticket?component=IncludeSourcePartialPlugin new ticket].
    1820
    19 == Download ==
     21[[TicketQuery(component=IncludeSourcePartialPlugin&group=type,format=progress)]]
    2022
    21 Download the zipped source from [download:includesourcepartialplugin here].
     23== Download
    2224
    23 == Source ==
     25Download the zipped source from [export:includesourcepartialplugin here].
    2426
    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
    2628
    27 === Enabling the plugin ===
     29You can check out IncludeSourcePartialPlugin from [/svn/includesourcepartialplugin here] using Subversion, or [source:includesourcepartialplugin browse the source] with Trac.
    2830
    29 In `trac.ini`, edit the ''components'' section to add the entry as
    30 follows:
    31 {{{
     31== Installation
     32
     33General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
     34
     35== Configuration
     36
     37In your `trac.ini` file, edit the components section to add the entry as follows:
     38{{{#!ini
    3239[components]
    3340includesource.* = enabled
    3441}}}
    3542
    36 == Example ==
     43== Example
    3744
    38     Examples:
    39     {{{
    40         # include entire file
    41         [[IncludeSource(trunk/proj/file.py)]]
     45{{{
     46# include entire file
     47[[IncludeSource(trunk/proj/file.py)]]
    4248
    43         # includes line 20-50 inclusive
    44         [[IncludeSource(trunk/proj/file.py, start=20, end=50)]]
     49# includes line 20-50 inclusive
     50[[IncludeSource(trunk/proj/file.py, start=20, end=50)]]
    4551
    46         # includes last 30 lines of file at revision 1200
    47         [[IncludeSource(trunk/proj/file.py, start=-30, rev=1200)]]
     52# includes last 30 lines of file at revision 1200
     53[[IncludeSource(trunk/proj/file.py, start=-30, rev=1200)]]
    4854
    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}}}
    5158
    52     }}}
    53 
    54 
    55 == Recent Changes ==
     59== Recent Changes
    5660
    5761[[ChangeLog(includesourcepartialplugin, 3)]]
    5862
    59 == Author/Contributors ==
     63== Author/Contributors
    6064
    6165'''Author:''' [wiki:chrisheller] [[BR]]
     66'''Maintainer:''' [[Maintainer]] [[BR]]
    6267'''Contributors:'''