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

[revealjs] Support Highlight.js plugin to highlight a specific part of a code line #11154

Open
asadow opened this issue Oct 20, 2024 · 2 comments
Labels
enhancement New feature or request revealjs Issues with the revealjs format
Milestone

Comments

@asadow
Copy link

asadow commented Oct 20, 2024

e.g through manual highlighting?

@asadow asadow changed the title Anyway to highlight a specific part of a code line? Any way to highlight a specific part of a code line? Oct 20, 2024
@asadow asadow changed the title Any way to highlight a specific part of a code line? Use revealjs to highlight a specific part of a code line? Oct 20, 2024
@cderv cderv transferred this issue from quarto-dev/quarto Oct 22, 2024
@cderv
Copy link
Collaborator

cderv commented Oct 22, 2024

Revealjs in Quarto does not use highlight.js. Pandoc Syntax highlighting is used instead, and the Highlight JS plugin for Revealjs is not loaded.

Possibly you can add the plugin yourself, but some feature will be lost (like code line numbering with highlights).

I'll make this as feature request to support other highlighting but this is not a priority as we build on Pandoc mainly

@cderv cderv added the enhancement New feature or request label Oct 22, 2024
@cderv cderv added this to the Future milestone Oct 22, 2024
@cderv cderv added the revealjs Issues with the revealjs format label Oct 22, 2024
@cderv cderv changed the title Use revealjs to highlight a specific part of a code line? [revealjs] Support Highlight.js plugin to highlight a specific part of a code line Oct 22, 2024
@cderv
Copy link
Collaborator

cderv commented Oct 22, 2024

Note that line highlighting is supported in Quarto already, as we did it without highlight.js support.

See https://quarto.org/docs/presentations/revealjs/#line-highlighting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request revealjs Issues with the revealjs format
Projects
None yet
Development

No branches or pull requests

2 participants