Extract code snippets from a project's VCS directly into the wiki
I believe this can be an extension to the current source syntax of the wiki.
For example :
<pre><code class="java" source="src/test/java/pkg1/MyClass.java#L20_L30"> Lines 20 to 30 from MyClass.java appear here. </code>
Would result in line 20 to 30 embedded as a
< code >section in the wiki. This comes in handy when referring to code sections throughout a design document. Of course, referring to specific commits is much more reliable to always retrieve the same set of lines.
What do you think of this ? Do you have an another idea to achieve the same thing ?