Include file-content as part of markdown.
It would be great if we could include certain lines from another file to be showed inside a mardown file.
For example something like:
{5:12}(code/example.java)
Would result in including the specified java file, lines 5 to 12
05.
06. public static void main(String[] args) {
07.
08. system.out.println("Hello World!");
09.
10.
11.
12. }
How would this work if the contents of the file changed? For example, if code/example.java no longer existed on master?
Thanks for the suggestion. See https://github.com/github/markup/issues/172#issuecomment-33241601.
This would be a very useful feature...
+1
Would be great for boilerplate or site/sub-section wide announcements or sections.
+1
+1
+1
+1
+1
+100000
+1
+1
+1
+1
+1 (and it would be great to select language for syntax highlighting for the contents as well)
+1
+1
+1
+1