Changes between Initial Version and Version 1 of IncludeSourcePartialPlugin


Ignore:
Timestamp:
Oct 6, 2008, 5:42:48 PM (16 years ago)
Author:
Chris Heller
Comment:

New hack IncludeSourcePartialPlugin, created by chrisheller

Legend:

Unmodified
Added
Removed
Modified
  • IncludeSourcePartialPlugin

    v1 v1  
     1= IncludeSourcePartial =
     2
     3== Description ==
     4
     5This is a slightly modified version of the IncludeSource macro to allow for partial includes. 
     6
     7This was originally done as a modification to the IncludeSource macro that was posted on [MacroBazaar http://trac.edgewall.org/wiki/MacroBazaar], but has been brought forward to 0.11.  The old version is still posted there.
     8
     9Note 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.
     10
     11== Bugs/Feature Requests ==
     12
     13Existing bugs and feature requests for IncludeSourcePartialPlugin are
     14[report:9?COMPONENT=IncludeSourcePartialPlugin here].
     15
     16If you have any issues, create a
     17[http://trac-hacks.org/newticket?component=IncludeSourcePartialPlugin&owner=chrisheller new ticket].
     18
     19== Download ==
     20
     21Download the zipped source from [download:includesourcepartialplugin here].
     22
     23== Source ==
     24
     25You can check out IncludeSourcePartialPlugin from [http://trac-hacks.org/svn/includesourcepartialplugin here] using Subversion, or [source:includesourcepartialplugin browse the source] with Trac.
     26
     27== Example ==
     28
     29    Examples:
     30    {{{
     31        # include entire file
     32        [[IncludeSource(trunk/proj/file.py)]]
     33
     34        # includes line 20-50 inclusive
     35        [[IncludeSource(trunk/proj/file.py, start=20, end=50)]]
     36
     37        # includes last 30 lines of file at revision 1200
     38        [[IncludeSource(trunk/proj/file.py, start=-30, rev=1200)]]
     39
     40        # include entire file but formatted plain
     41        [[IncludeSource(trunk/proj/file.py, mimetype=text/plain)]]
     42
     43    }}}
     44
     45
     46== Recent Changes ==
     47
     48[[ChangeLog(includesourcepartialplugin, 3)]]
     49
     50== Author/Contributors ==
     51
     52'''Author:''' [wiki:chrisheller] [[BR]]
     53'''Contributors:'''