Go Chroma Component
Go Chroma component is for displaying preformatted computer codes with syntax
highlighting using Go Chroma package used in Hugo. Bissetii styles its outcome
seemlessly to make it compatible with the main design.
This component is available starting from
Due to the requirement to support Hugo as a theme module and Hugo started to use Go Chroma to perform syntax highlighting, Bissetii has to inheritly support Go Chroma rendering adjustment as a module.
The Go Chroma repository is available on Github and Hugo’s guide.
Highlighting Code Using Code Fencing
To highlight codes with syntax highlighting, you can use the code fencing ability. Example:
It renders as:
Customizing Highlighting Style
The configuration file is located in the
markup.toml file inside Hugo’s config
name : markup.toml
local directory : config/_default/markup.toml
Bissetii repo-doc: .sites/config/_default/markup.toml
Inside the Hugo config
markup.toml file, there is a field called
Bissetii set the default to
"monokailight". If needed, simply browse the
following gallery here and change it to that title.
- Summary Text Styling
- Full Text Styling
Go Chroma package generates its own HTML codes seamlessly, there is no
HTML guide available.
Go Chroma handles all the styling with inline CSS styling, there is no
CSS available for customization.
Depending on release version, the Sass files work differently. Bissetii does not package Sass codes explictly so please view them via the git repository.
v1.13.0 and Above
Bissetii uses Dart Sass to compile the styling Sass codes into CSS file. This component’s Sass codes are available at the following location:
v1.12.5 and Before
The Sass scripts responsible for styling the component are located in:
This is an optional module since not everyone is using Go Chroma to render code blocks. To include Go Chroma adjustment, you need to enable Go Chroma config in your Sass configuration file:
Here are the researches done to ensure
Go Chroma component meets the necessary
SCHEDULED COMING SOON
That’s all about
Go Chroma component in Bissetii. If you need more feature or
need to report a bug, please feel free to file an issue at our