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

Allow for more refined (non-syntax) highlighting in code #2124

Open
Filip-FK-Kwiatkowski opened this issue Mar 21, 2025 · 0 comments
Open

Allow for more refined (non-syntax) highlighting in code #2124

Filip-FK-Kwiatkowski opened this issue Mar 21, 2025 · 0 comments

Comments

@Filip-FK-Kwiatkowski
Copy link

v-mark is an excellent tool for highlighting key points in text, but doesn't seem to work with code blocks. While line highlighting is very appealing and extremely useful, it has some obvious limitations - it always highlights the entire line, but sometimes we wish to draw attention to a particular portion of that line.

Ideally, I would love it if code blocks could support some form of integration with v-mark, for example to dynamically encircle a given section (span, if you will) of code. Maybe it could be specified somewhere next to the Shiki's parameters.

I have considered a workaround of trying to find a component like arrow but in form of a circle. Didn't find it. Worst case scenario I could use an arrow, but it's just not the same. Plus it would potentially have to be updated every time the code snippet changes (that's the case for both supplied <arrow> and the hypothetical <circle>).

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