If you are using SublimeText 4 (4075+
), we strongly recommend that you install extended Go syntax highlighting with support for fmtc
tags.
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.
Name | Tag | Reset Tag | Code |
---|---|---|---|
Reset | {!} |
— | 0 |
Bold | {*} |
{!*} |
1 |
Dim | {^} |
{!^} |
2 |
Italic | {&} |
{!&} |
3 |
Underline | {_} |
{!_} |
4 |
Blink | {~} |
{!~} |
5 |
Reverse | {@} |
{!@} |
7 |
Hidden | {+} |
{!+} |
8 |
Strikethrough | {=} |
{!=} |
9 |
Tag: {#code}
Tag: {%code}
Tag: {#hex}
Tag: {%hex}
Tag: {?name}
For more information about named colors see documentation for method NameColor
.
{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"