The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::sdview::Style - store formatting style information for App::sdview

DESCRIPTION

This module stores formatting style information for App::sdview text output formatters, such a App::sdview::Output::Plain or App::sdview::Output::Terminal.

Config File

Style information can be overridden by the user, supplying a Config::Tiny-style file at $HOME/.sdviewrc. Formatting for each kind of paragraph is provided in a section called Para $NAME, and each individual key gives formatting values.

   [Para head1]
   bold = 0|1
   italic = 0|1
   monospace = 0|1
   blank_after = 0|1
   under = NUM
   margin = NUM

   [Para head2]
   ...

The value for keys that set colours should be a string suitable for Convert::Color->new:

   [Para head1]
   fg = vga:red
   bg = xterm:184

Formatting for each kind of inline format is provided in a section called Inline $NAME, using the same key names as paragraphs.

   [Inline monospace]
   fg = xterm:rgb(5,2,0)

Note that the [Inline monospace] style is automatically inherited by [Para verbatim].

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>