I’d like to put forward a proposal to extend code blocks to include a filename, to be used as a caption for the code block, and a starting line number.
##Proposal 1##
filename.ext:starting_line_number
or:
/path/to/filename.cpp:100
This proposal is similar to the output of grep
and the breakpoint notation in gdb
```filename.cpp:100
int main(){
return 0;
}
```
###Proposal 2###
This proposal should allow backwards computability with older documents/parsers.
class filename.ext:starting_line_number
```cpp filename.cpp:100
int main(){
return 0;
}
```
###Proposal 3###
class filename=filename.cpp linenumber=staring_line_number foo=bah ...
This final proposal allows for future extensions to be added, while remaining compatible with other parsers that only support a limited number of features. (This is personally my least preferred option but I could see it being useful to someone).
```cpp filename=filename.cpp linenumber=100
int main(){
return 0;
}
```
##Proposed Output:##
100: int main(){
101: return 0;
102: }
filename.cpp