I’ve seen that Github allows certain and non conventional syntax highlighting with markdown.
I’d like to know, excluding the possibility of using html, is it possible to set a file where I can define a syntax highlighting language (Solidity or Vyper) which is not set by default?
Have you tried the built-in syntax highlighting provided by Chroma?
This is the current list supported by Hugo:
I think the above is up to date.
Are there any official instructions to use/install Chroma?
Chroma is a part of Hugo.
(Here you can find a list of all the dependencies.)
@omrllm Adding this to your
config.toml will get you started:
pygmentsCodefences = true
pygmentsCodefencesGuessSyntax = true
pygmentsStyle = "pygments"
"pygments" is just the name of the Chroma style to be used. Checkout the Chroma style gallery and choose the style you like.