Changes between Version 8 and Version 9 of IncludeSourcePartialPlugin


Ignore:
Timestamp:
Oct 19, 2016, 9:57:19 PM (8 years ago)
Author:
figaro
Comment:

Moved example to functional description

Legend:

Unmodified
Added
Removed
Modified
  • IncludeSourcePartialPlugin

    v8 v9  
    66
    77This macro allows source files to be partially or wholly included in other wiki content.
     8
     9Include entire file:
     10
     11{{{
     12[[IncludeSource(trunk/proj/file.py)]]
     13}}}
     14
     15Includes line 20-50 inclusive:
     16
     17{{{
     18[[IncludeSource(trunk/proj/file.py, start=20, end=50)]]
     19}}}
     20
     21Includes last 30 lines of file at revision 1200:
     22
     23{{{
     24[[IncludeSource(trunk/proj/file.py, start=-30, rev=1200)]]
     25}}}
     26
     27Include entire file but formatted plain:
     28
     29{{{
     30[[IncludeSource(trunk/proj/file.py, mimetype=text/plain)]]
     31}}}
    832
    933== Bugs/Feature Requests
     
    3761}}}
    3862
    39 == Example
    40 
    41 {{{
    42 # include entire file
    43 [[IncludeSource(trunk/proj/file.py)]]
    44 
    45 # includes line 20-50 inclusive
    46 [[IncludeSource(trunk/proj/file.py, start=20, end=50)]]
    47 
    48 # includes last 30 lines of file at revision 1200
    49 [[IncludeSource(trunk/proj/file.py, start=-30, rev=1200)]]
    50 
    51 # include entire file but formatted plain
    52 [[IncludeSource(trunk/proj/file.py, mimetype=text/plain)]]
    53 }}}
    54 
    5563== Recent Changes
    5664