Index | Thread | Search

From:
Igor Zornik <mocheryl@mocheryl.org>
Subject:
[NEW] textproc/go-chroma
To:
OpenBSD ports <ports@openbsd.org>
Date:
Tue, 16 Jun 2026 21:14:43 +0200

Download raw body.

Thread
  • Igor Zornik:

    [NEW] textproc/go-chroma

Hello, ports!

Attached is a new port that is used for colorizing many languages into
various output types. The main part of the port is the gochroma binary.
It takes an input and performs some syntax highlighting on it. You can
use it, for example, in cgit to make your code display on the web page
more colorful. The project also comes with a web site, but I don’t
see much practical use for it beside looking nice so I just separated
it into a subpackage to avoid installing a whole bunch of unnecessary
stuff. I think it’s mostly used for demonstrative purposes.

Any feedback is welcome. Package info below.

Comment:
general purpose syntax highlighter in pure Go

Description:
Chroma 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.

Maintainer: Igor Zornik <mocheryl@mocheryl.org>

WWW: https://github.com/alecthomas/chroma