kaushalmodi / ox-hugo

A carefully crafted Org exporter back-end for Hugo
https://ox-hugo.scripter.co
GNU General Public License v3.0
874 stars 132 forks source link

syntax highlighting for R and elisp. #700

Closed fkgruber closed 1 year ago

fkgruber commented 1 year ago

Hi I'm using the old academic theme and hugo 0.5 and my only complain is that code blocks are not color coded. Both R and elisp show in a single color. See for example image

Is there a simple configuration setting that I'm missing to get the syntax coloring working?

thanks FKG

kaushalmodi commented 1 year ago

You'll need to fix this in Hugo configuration.

Also, version 0.5 is really old. Please update to the latest Hugo version.

By default, the syntax highlighting should work right out of the box. See https://gohugo.io/getting-started/configuration-markup/#highlight for more information.

fkgruber commented 1 year ago

Updated to the most recent hugo and got fixed. thanks