embed-code-file icon indicating copy to clipboard operation
embed-code-file copied to clipboard

Feature request: Tag/Marker instead of fixed line numbers

Open sboehmann opened this issue 3 years ago • 0 comments

Currently I can embed parts of code by specifying the line numbers:

PATH: "vault://main.cpp"
LINES: "30-40"

However, I would like to request for a somewhat more stable tagging. Line numbers are very fragile. ;-)

Something like:

PATH: "vault://main.cpp"
TAG: example1

Thereby my main.cpp would contain something like this:

// [embed-start:example1]
int main() {}
// [embed-end:example1]

sboehmann avatar Nov 30 '22 00:11 sboehmann