Closed iambenkay closed 3 years ago
Includes a whole new way to format strings with various rich text identifiers.
c := color.New() c.PrintlnRT("This is the example of *Rich Text Formatting* in the ~terminal~. (fg:black|(bg:cyan|BLACK text on a CYAN background)).")
BOLD - *bold text* ITALICS - _italicized text_ UNDERLINE - ~underlined text~ TEXT COLOR - (fg:red|red text) BACKGROUND COLOR - (bg:cyan|cyan background)
*bold text*
_italicized text_
~underlined text~
(fg:red|red text)
(bg:cyan|cyan background)
Feel free to suggest anything you feel should be added to this PR.
This is a response to my issue #117
@fatih Can you take a look at this.
@fatih @bogem @zddhub
What's New?
Includes a whole new way to format strings with various rich text identifiers.
Output:
Usage
BOLD -
*bold text*
ITALICS -_italicized text_
UNDERLINE -~underlined text~
TEXT COLOR -(fg:red|red text)
BACKGROUND COLOR -(bg:cyan|cyan background)
Feel free to suggest anything you feel should be added to this PR.