Utils Highlight

inyoka.utils.highlight

This module implements a reusable helper for code highlighting using Pygments <http://pygments.org>

copyright:
  1. 2007-2024 by the Inyoka Team, see AUTHORS for more details.

license:

BSD, see LICENSE for more details.

inyoka.utils.highlight.highlight_code(code, lang=None, filename=None, mimetype=None)

Highlight a block using pygments to HTML.