What plugin are you using for this, as the IncludeMacro plugin doesn't accept regex...
On Tue, May 12, 2009 at 7:06 AM, jevans <[email protected]> wrote: > > > On May 11, 10:59 am, Anton Deguet <[email protected]> wrote: > > Hello, > > > > I am trying to write a simple tutorial under Trac Wiki and I am > > looking for a feature similar to "listings" under LaTeX. My goal is > > to quote parts of an actual source file. > > > > This would look like: > > > > {{{ > > #!cpp > > #listing(source:/trunk/myFile, 10, 20) > > > > }}} > > > > would quote from line 10 to 20 directly from the source file. This > > way, if the source is updated, the Wiki automatically uses the latest > > version. > > > > Is there any easy solution for this? > > > > Anton > > Since line numbers can shift so easily, how about something like: > [[Include(source:trunk/somefile.cpp, '// Important section', 20)]] > where the second parameter could be a regex matching something in the > file. > - jevans > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
