Changes for version 0.04 - 2026-11-19

  • A code block which has parts is colored part by part, by a module Text::ANSI::Highlight::Block::NAME for a block of that name. Text::ANSI::Highlight::Block::embedz is the one for a block of pandoc-embedz: the configuration is YAML, the template is Jinja2, and the data has the language of its format
  • highlight takes the line of a fence for the language, and the class method parts gives the parts of a block with their labels
  • A class in braces is the language of a fence, as pandoc takes it: ```{.perl .numberLines}
  • new(background => 0) takes the colors of the background out of what the highlighter gives
  • SGR sequences which have a parameter with colons (38:2::R:G:B) are taken for colors
  • A file of the name cpanfile is Perl

Documentation

syntax highlight for the terminal

Modules

syntax highlight for the terminal, by a highlighter of your choice
the parts of a block of pandoc-embedz
read source files in colors, in a program as it is

Provides

in lib/Text/ANSI/Highlight/pandoc.pm
in lib/Text/ANSI/Highlight/skylighting.pm
in lib/Text/ANSI/Highlight/sourcehighlight.pm