This package browser is in early development. Mind the rough edges.

go-chroma

General purpose syntax highlighter

This package implements a syntax highlighter for a long list of programming languages. It takes source code and other structured text and converts it into syntax highlighted HTML, ANSI-coloured text, etc. Chroma is based heavily on Pygments, and includes translators for Pygments lexers and styles.

Installation

Install the latest version of go-chroma as follows:

guix install go-chroma

Or install a particular version:

guix install go-chroma@2.20.0

You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell documentation for more information.

Badge code

You can use the following badge to inform users of go-chroma about the latest version available in Guix.

Example HTML:

<a href='https://packages.guix.gnu.org/packages/go-chroma'><img src='https://packages.guix.gnu.org/packages/go-chroma/badges/latest-version.svg' alt='Version in GNU Guix'></a>

Example Markdown:

[![Version in GNU Guix](https://packages.guix.gnu.org/packages/go-chroma/badges/latest-version.svg)](https://packages.guix.gnu.org/packages/go-chroma)

Example Org:

[[https://packages.guix.gnu.org/packages/go-chroma][https://packages.guix.gnu.org/packages/go-chroma/badges/latest-version.svg]]