cmdbox icon indicating copy to clipboard operation
cmdbox copied to clipboard

Factor util/emph* into package emph

Open rwxrob opened this issue 3 years ago • 2 comments

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.

rwxrob avatar Jul 03 '21 18:07 rwxrob

Changing the package name from emph to txt so that can put wrap in here as well.

rwxrob avatar Jul 03 '21 22:07 rwxrob

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.

rwxrob avatar Jul 03 '21 22:07 rwxrob