Skip to content

Latest commit

 

History

History

fmtc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

fmtc color tags

Editors support

If you are using SublimeText 4 (4075+), we strongly recommend that you install extended Go syntax highlighting with support for fmtc tags.

#colors

Environment variables

fmtc supports configuration via environment variables.

  • NO_COLOR — disable all colors and modificators;
  • FMTC_NO_BOLD — disable bold text;
  • FMTC_NO_ITALIC — disable italic text;
  • FMTC_NO_BLINK — disable blinking text.

Modificators

Name Tag Reset Tag Code
Reset {!} 0
Bold {*} {!*} 1
Dim {^} {!^} 2
Italic {&} {!&} 3
Underline {_} {!_} 4
Blink {~} {!~} 5
Reverse {@} {!@} 7
Hidden {+} {!+} 8
Strikethrough {=} {!=} 9

8/16 Colors

Foreground (Text)
Name Tag Code Color Preview
Black {d} 30 #color
Red {r} 31 #color
Green {g} 32 #color
Yellow {y} 33 #color
Blue {b} 34 #color
Magenta {m} 35 #color
Cyan {c} 36 #color
Light gray {s} 37 #color
Dark gray {s-} 90 #color
Light red {r-} 91 #color
Light green {g-} 92 #color
Light yellow {y-} 93 #color
Light blue {b-} 94 #color
Light magenta {m-} 95 #color
Light cyan {c-} 96 #color
White {w-} 97 #color
Background
Name Tag Code Color Preview
Black {D} 40 #color
Red {R} 41 #color
Green {G} 42 #color
Yellow {Y} 43 #color
Blue {B} 44 #color
Magenta {M} 45 #color
Cyan {C} 46 #color
Light gray {S} 47 #color
Dark gray {S-} 100 #color
Light red {R-} 101 #color
Light green {G-} 102 #color
Light yellow {Y-} 103 #color
Light blue {B-} 104 #color
Light magenta {M-} 105 #color
Light cyan {C-} 106 #color
White {W-} 107 #color

88/256 Colors

#256colors

Foreground (Text)

Tag: {#code}

Background

Tag: {%code}

24-bit Colors (TrueColor)

Foreground (Text)

Tag: {#hex}

Background

Tag: {%hex}

Named colors

Tag: {?name}

For more information about named colors see documentation for method NameColor.

Examples

{r*}Important!{!*} File deleted!{!}
 ┬             ┬─                ┬
 │             │                 │
 │             │                 └ Reset everything
 │             │
 │             └ Unset bold modificator
 │
 └ Bold, red text 
{rG*}OMG!{!*} Check your mail{!}
 ┬──      ┬─                  ┬
 │        │                   │
 │        │                   └ Reset everything
 │        │
 │        └ Unset bold modificator
 │
 └ Bold, red text with green background
{r}File {_}file.log{!_} deleted{!}
 ┬       ┬          ┬─          ┬
 │       │          │           │ 
 │       │          │           └ Reset everything
 │       │          │
 │       │          └ Unset underline modificator
 │       │
 │       └ Set underline modificator
 │
 └ Set text color to red
{*@y}Warning!{!@} Can't find user bob.{!}
 ┬──          ┬─                       ┬
 │            │                        │
 │            │                        └ Reset everything
 │            │
 │            └ Unset reverse modificator (keep yellow color)
 │
 └ Bold text with yellow background (due to reverse modificator)
{#213}{%240}Hi all!{!}
 ┬───  ┬───         ┬
 │     │            │
 │     │            └ Reset everything
 │     │
 │     └ Set background color to grey
 │
 └ Set text color to pink
{#ff1493}{%191970}Hi all!{!}
 ┬──────  ┬──────         ┬
 │        │               │
 │        │               └ Reset everything
 │        │
 │        └ Set background color to midnightblue
 │
 └ Set text color to deeppink
{?error}Can't find user "bob"{!}
 ┬─────                       ┬
 │                            │
 │                            └ Reset everything
 │
 │
 │
 └ Set color to named color "error"