Feature #11351

Extract code snippets from a project's VCS directly into the wiki

Added by Maher Gamal over 10 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


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.

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 ?

Also available in: Atom PDF