Import code snippet from lines
Author: LombraCreated Oct 1, 2024Updated Sep 15, 2026
Labelsbuild
Is your feature request related to a problem? Please describe.
I have some sources file from which I would like to include a few snippets. Currently you can selectively import code snippets only using regions, as I understand it. I don't have or want regions, nor does my language support it.
Describe the solution you'd like
I would like to select line start[-end] for inclusion, similar to how highlighting works. I don't know what an appropriate syntax for this would be.
Describe alternatives you've considered
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the docs.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
Source: vuejs/vitepress