cmdbox
cmdbox copied to clipboard
Factor util/emph* into package emph
The emphasis code really needs its own package. It was already factored
into fmt
before but that name was problematic. The emph
package name
is good because it focuses on the type of emphasis and not the method.
The syntax is similar to Markdown but slightly expanded progressively in
a way that wont beak other stuff (such as <angle>
being underlined).
This emph
package will be 100% focused on readable and minimal
emphasis without getting crazy.
Changing the package name from emph
to txt
so that can put wrap in
here as well.
Actually, rather than create a package it's a better approach to make a
Formatter interface that has UseColor(bool)
so its state can be
manipulated and more than one can be working at the same time, even if
CmdBox only has a single embedded formatter.