[Patch] Add support for tags in source file
|Reported by:||anton.deguet@…||Owned by:||chrisheller|
Instead of using line number to extract the snippet of code, it would be nice to use some special tags to identify the starting and end lines of the code to be inserted. For example one could do:
unsigned int var; // @TracWikiIncludeSourcePartialBegin(example1) for (var = 0; var != 10; var++) someFuntion(var) } // @TracWikiIncludeSourcePartialEnd(example1)
Then in the wiki page, one would use:
[[IncludeSource(trunk/proj/file.cpp, snippet=example1, rev=1200)]]
This way, the code snippet could be moved within the file or grow but the wiki would still insert the right code.