I am currently writing a small documentation on Github Wiki. I have a repo for my example codes and would like to cite some lines from examples codes in my wiki.
Rather than writing a code block statically, I simply want to "get 1st to 5th lines of code from this file", so when ever I update the an example code, the codes in the wiki will be updated.
Is it possible?
For example (in Wiki):
github.com/username/repo/main.cpp :
#include "test.h"
int main(){
}
In wiki: (Get the first line of ../main.cpp)
#include "test.h"