Thermage provides incredible simple and powerful Shortcodes API to create and use shortcodes markup for customizing CLI output text color, background, formatting.

Usage

Simple example of shortcodes usage with element Div.

use function Thermage\div;
use function Thermage\render;

// ...

render (
  div('[bg=purple][color=green][b]Stay RAD![/b][/color][/bg]')
);
Terminal
$ php thermage.php
Stay RAD!

Methods

add Add shortcode handler.
addEvent Add shortcode event handler.
getFacade Get Shortcodes Facade.
getTheme Get Shortcodes theme.
parse Parse and processes text to replaces shortcodes.
parseText Parses text into shortcodes.
setTheme Set Shortcodes theme.
stripShortcodes Strip shortcodes.

Shortcodes

anchor Create anchor.
bg Set background color style.
blink Set blink style.
bold Set bold style.
color Set text color style.
dim Set dim style.
invisible Set invisible style.
italic Set italic style.
reverse Set reverse style.
strikethrough Set strikethrough style.
underline Set underline style.