I’ve been a non-expert Hugo user for a few years now. I use it to maintain a documentation site (choco-solver) on which I also upload presentations generated using reveal_hugo.
The config.toml contains:
[markup.highlight]
codeFences = true
The documentation part is organized as a branch bundle.
The presentation is also organized as branch bundle and I set the front matter in the _index.md file as:
The markup (config) key is not on the list; you cannot set/override these settings at the page level. The markup key in front matter is for something different.
I do not understand your goal, so I cannot suggest an approach.
should first highlight the first line then lines 2 to 4.
This works when I set codeFences=false in config.toml and does not work otherwise.
But, in the documentation part, when I set codeFences=false the rendering is not what I want (syntactic colouring is off).