Apple text styling

A very simple styling language for the CLI.

It's an interpreted markdown language that inherits styling from preceding and considers it a parent styling.

For example, in the string "my dog is a cat", the word dog can be a key or the context for the rest of the sentence.

Syntax

%key:value% <text> %key:value% ...

Example usage:

%font-size: 14px% The world is %font-size: 24px% HUGE %font-size: 14px%

Output:

circle-check

Text types

Types are essentially templates of preformatted text styles, these include normal text, code blocks, and so on.

%type: code_block%
%type: pure_text%
%type: pure_text_end%
%type: kbd%

Pure text twist

pure_text is a text type, but it comes with a twist. Any text styling declaration inside pure text will be ignored. Example:

As shown in the example, to end a pure text block, you must use the pure_text_end type .

Multiple declarations

Multiple declarations allow you to declare multiple styles in a single block of text without using many % enclosed blocks. Example:

Last updated