Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Tag/Marker instead of fixed line numbers #6

Open
sboehmann opened this issue Nov 30, 2022 · 0 comments
Open

Feature request: Tag/Marker instead of fixed line numbers #6

sboehmann opened this issue Nov 30, 2022 · 0 comments

Comments

@sboehmann
Copy link

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant