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]
...
Specifying the special value ~
deletes the default value for that key without providing a replacement.
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]
.
Style information for syntax highlighting can be supplied in sections called [Highlight $NAME]
, where each name is the tree-sitter query capture name for the highlight group.
[Highlight comment]
bg = xterm:232
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>