css style for code highlight missing
thibautjombart opened this issue · comments
The css file for code highlighting is present in static/css/recon.css
but I am not sure how this is now supposed to be used / called in the .Rmd
files. It would either:
- be applied automatically to all syntax highlighting in all practicals
- be applied manually to individual
Rmd
s, e.g. in theyaml
header via
css: path/to/recon.css
My preference goes to 1 (older behaviour) but if only 2 is possible, then it'd be nice to have a working example e.g. on content/post/practical-ebola-response.md
(I can apply changes to other documents)
Are any of these default styles acceptable? https://help.farbox.com/pygments.html
These can trialled locally by using the pygmentsStyle
config value in config.toml
Note to self, tracking down the issue:
- highlightjs was missing, been added
- css now custom for highlightjs
- conflicts with theme style:
.post-full-content pre code
Looks like neutralising the class doesn't work; would need to tweak the hugo theme itself = not cool for keeping updates.
Current status 53e5eaf
@stephlocke yes, definitely! It tried nudging highlighjs and fiddling with css yesterday to bump into what I think are theme specific issues, so any out of the box solution will be good. I like monokai
and native
most.