tui markup

This crate provides a markup language to quickly write colorful and styled terminal text(of [tui] crate) in plain text.

Document|Changelog

Example

This is the output of cargo run --example help:

help-text

The source markup text of this article can be found in [examples/help.txt].

Syntax

Only one syntax <tag content> to add style to content.

tag is a style list sep by ,.

style has format of mode:value, available mode are:

Mode prefix is optional except bg:, so fg:66ccf = 66ccff, and mod:b = b.

Some examples:

The forma syntax spec can be found in crate document, with complete list of available color and modifiers.

LICENSE

BSD-3-Clause-Clear, See [LICENSE].