Changes between Version 7 and Version 8 of CodeExampleMacro


Ignore:
Timestamp:
Feb 13, 2010, 6:54:57 AM (5 years ago)
Author:
nuald
Comment:

The description of using *Path macros has been added.

Legend:

Unmodified
Added
Removed
Modified
  • CodeExampleMacro

    v7 v8  
    6868[[Image(correct_example.png)]]
    6969
     70Also there is support for getting sources from the repository using !CodeExamplePath, !BadCodeExamplePath, !GoodCodeExamplePath.
     71
     72{{{
     73{{{
     74#!GoodCodeExamplePath
     75#!python
     76path=gws/main/main_view.py
     77regex="def update_statusbar"
     78lines=3
     79}}}
     80}}}
     81
     82will be rendered as:
     83
     84[[Image(correct_example.png)]]
     85
     86Parameters for *Path macros:
     87 * '''path''' - a file in the repository
     88 * '''regex''' - (optional) a regular expression indicates which to start getting
     89 * '''lines''' - (optional) limits number of lines of code to get
     90
    7091== Recent Changes ==
    7192