Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Enable and then add (or replace) line highlighting for code syntax #114

Open
RichieEscarez opened this issue Dec 17, 2019 · 0 comments
Open

Comments

@RichieEscarez
Copy link
Contributor

RichieEscarez commented Dec 17, 2019

https://gohugo.io/content-management/syntax-highlighting/#highlighting-in-code-fences

With Hugo 0.60.x you can specify which lines in a code block that you want highlighted (for example to show/demonstrate how and where to add an element in a config file).

If you add hl_lines (ie. hl_lines=8 15-17), the specified line numbers get yellow highlighting.

Nice to have for our readfile shortcode

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant