Markdown Syntax Highlight - Non default language

Hi,

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?

TL, DR: By default I can highlight a Javascript or a Python code block… is this possible with something like Solidity?

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"

Here, "pygments" is just the name of the Chroma style to be used. Checkout the Chroma style gallery and choose the style you like.

Alright, now it works.

Thank you very much!