Skip to content

Commit

Permalink
Support underline style and color
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Nov 19, 2023
1 parent 8fa7edf commit 83d90aa
Show file tree
Hide file tree
Showing 23 changed files with 846 additions and 189 deletions.
33 changes: 28 additions & 5 deletions far/FarCze.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2812,21 +2812,40 @@ saved path.
Prompt elements can be highlighted with #colors#.

Format:
#([[T]FFFFFFFF][:[T]BBBBBBBB])#, where:
#([[T]FFFFFFFF][:[T]BBBBBBBB][:style[:[T]UUUUUUUU]])#, where:

#FFFFFFFF#
Foreground color in aarrggbb format or index in the console palette.

#BBBBBBBB#
Background color in aarrggbb format or index in the console palette.

#style#
One or more text styles, separated by spaces:
#bold#
#italic#
#overline#
#strikeout#
#faint#
#blink#
#inverse#
#invisible#
#underline#
#underline_double#
#underline_curly#
#underline_dot#
#underline_dash#

#UUUUUUUU#
Underline color in aarrggbb format or index in the console palette.

#T#
"TrueColor" flag. If absent, value is treated as the console palette index (0-F):
"TrueColor" flag. If absent, value is treated as the console palette index (00-FF):

\00 \11 \22 \33 \44 \55 \66 \77 \88 \99 \AA \BB \CC \DD \EE \FF \-
0123456789ABCDEF

If foreground or background color is omitted, the corresponding default value will be used.
If a color is omitted, the corresponding default value will be used.

Examples:

Expand Down Expand Up @@ -4452,14 +4471,18 @@ $ #Color Picker#
Default: \(7:0) Example \-
Bold: \(7:0:bold) Example \-
Italic: \(7:0:italic) Example \-
Underline: \(7:0:underline) Example \-
Double: \(7:0:underline2) Example \-
Overline: \(7:0:overline) Example \-
Strikeout: \(7:0:strikeout) Example \-
Faint: \(7:0:faint) Example \-
Blink: \(7:0:blink) Example \-
Inverse: \(7:0:inverse) Example \-
Invisible: \(7:0:invisible) Example \-
Underline:
Single: \(7:0:underline) Example \-
Double: \(7:0:underline_double) Example \-
Curly: \(7:0:underline_curly) Example \-
Dotted: \(7:0:underline_dot) Example \-
Dashed: \(7:0:underline_dash) Example \-

The preview section below displays the final result.

Expand Down
33 changes: 28 additions & 5 deletions far/FarEng.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2778,21 +2778,40 @@ saved path.
Prompt elements can be highlighted with #colors#.

Format:
#([[T]FFFFFFFF][:[T]BBBBBBBB])#, where:
#([[T]FFFFFFFF][:[T]BBBBBBBB][:style[:[T]UUUUUUUU]])#, where:

#FFFFFFFF#
Foreground color in aarrggbb format or index in the console palette.

#BBBBBBBB#
Background color in aarrggbb format or index in the console palette.

#style#
One or more text styles, separated by spaces:
#bold#
#italic#
#overline#
#strikeout#
#faint#
#blink#
#inverse#
#invisible#
#underline#
#underline_double#
#underline_curly#
#underline_dot#
#underline_dash#

#UUUUUUUU#
Underline color in aarrggbb format or index in the console palette.

#T#
"TrueColor" flag. If absent, value is treated as the console palette index (0-F):
"TrueColor" flag. If absent, value is treated as the console palette index (00-FF):

\00 \11 \22 \33 \44 \55 \66 \77 \88 \99 \AA \BB \CC \DD \EE \FF \-
0123456789ABCDEF

If foreground or background color is omitted, the corresponding default value will be used.
If a color is omitted, the corresponding default value will be used.

Examples:

Expand Down Expand Up @@ -4419,14 +4438,18 @@ $ #Color Picker#
Default: \(7:0) Example \-
Bold: \(7:0:bold) Example \-
Italic: \(7:0:italic) Example \-
Underline: \(7:0:underline) Example \-
Double: \(7:0:underline2) Example \-
Overline: \(7:0:overline) Example \-
Strikeout: \(7:0:strikeout) Example \-
Faint: \(7:0:faint) Example \-
Blink: \(7:0:blink) Example \-
Inverse: \(7:0:inverse) Example \-
Invisible: \(7:0:invisible) Example \-
Underline:
Single: \(7:0:underline) Example \-
Double: \(7:0:underline_double) Example \-
Curly: \(7:0:underline_curly) Example \-
Dotted: \(7:0:underline_dot) Example \-
Dashed: \(7:0:underline_dash) Example \-

The preview section below displays the final result.

Expand Down
33 changes: 28 additions & 5 deletions far/FarGer.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2852,21 +2852,40 @@ saved path.
Prompt elements can be highlighted with #colors#.

Format:
#([[T]FFFFFFFF][:[T]BBBBBBBB])#, where:
#([[T]FFFFFFFF][:[T]BBBBBBBB][:style[:[T]UUUUUUUU]])#, where:

#FFFFFFFF#
Foreground color in aarrggbb format or index in the console palette.

#BBBBBBBB#
Background color in aarrggbb format or index in the console palette.

#style#
One or more text styles, separated by spaces:
#bold#
#italic#
#overline#
#strikeout#
#faint#
#blink#
#inverse#
#invisible#
#underline#
#underline_double#
#underline_curly#
#underline_dot#
#underline_dash#

#UUUUUUUU#
Underline color in aarrggbb format or index in the console palette.

#T#
"TrueColor" flag. If absent, value is treated as the console palette index (0-F):
"TrueColor" flag. If absent, value is treated as the console palette index (00-FF):

\00 \11 \22 \33 \44 \55 \66 \77 \88 \99 \AA \BB \CC \DD \EE \FF \-
0123456789ABCDEF

If foreground or background color is omitted, the corresponding default value will be used.
If a color is omitted, the corresponding default value will be used.

Examples:

Expand Down Expand Up @@ -4504,14 +4523,18 @@ $ #Color Picker#
Default: \(7:0) Example \-
Bold: \(7:0:bold) Example \-
Italic: \(7:0:italic) Example \-
Underline: \(7:0:underline) Example \-
Double: \(7:0:underline2) Example \-
Overline: \(7:0:overline) Example \-
Strikeout: \(7:0:strikeout) Example \-
Faint: \(7:0:faint) Example \-
Blink: \(7:0:blink) Example \-
Inverse: \(7:0:inverse) Example \-
Invisible: \(7:0:invisible) Example \-
Underline:
Single: \(7:0:underline) Example \-
Double: \(7:0:underline_double) Example \-
Curly: \(7:0:underline_curly) Example \-
Dotted: \(7:0:underline_dot) Example \-
Dashed: \(7:0:underline_dash) Example \-

The preview section below displays the final result.

Expand Down
33 changes: 28 additions & 5 deletions far/FarHun.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2861,21 +2861,40 @@ saved path.
Prompt elements can be highlighted with #colors#.

Format:
#([[T]FFFFFFFF][:[T]BBBBBBBB])#, where:
#([[T]FFFFFFFF][:[T]BBBBBBBB][:style[:[T]UUUUUUUU]])#, where:

#FFFFFFFF#
Foreground color in aarrggbb format or index in the console palette.

#BBBBBBBB#
Background color in aarrggbb format or index in the console palette.

#style#
One or more text styles, separated by spaces:
#bold#
#italic#
#overline#
#strikeout#
#faint#
#blink#
#inverse#
#invisible#
#underline#
#underline_double#
#underline_curly#
#underline_dot#
#underline_dash#

#UUUUUUUU#
Underline color in aarrggbb format or index in the console palette.

#T#
"TrueColor" flag. If absent, value is treated as the console palette index (0-F):
"TrueColor" flag. If absent, value is treated as the console palette index (00-FF):

\00 \11 \22 \33 \44 \55 \66 \77 \88 \99 \AA \BB \CC \DD \EE \FF \-
0123456789ABCDEF

If foreground or background color is omitted, the corresponding default value will be used.
If a color is omitted, the corresponding default value will be used.

Examples:

Expand Down Expand Up @@ -4523,14 +4542,18 @@ $ #Color Picker#
Default: \(7:0) Example \-
Bold: \(7:0:bold) Example \-
Italic: \(7:0:italic) Example \-
Underline: \(7:0:underline) Example \-
Double: \(7:0:underline2) Example \-
Overline: \(7:0:overline) Example \-
Strikeout: \(7:0:strikeout) Example \-
Faint: \(7:0:faint) Example \-
Blink: \(7:0:blink) Example \-
Inverse: \(7:0:inverse) Example \-
Invisible: \(7:0:invisible) Example \-
Underline:
Single: \(7:0:underline) Example \-
Double: \(7:0:underline_double) Example \-
Curly: \(7:0:underline_curly) Example \-
Dotted: \(7:0:underline_dot) Example \-
Dashed: \(7:0:underline_dash) Example \-

The preview section below displays the final result.

Expand Down
33 changes: 28 additions & 5 deletions far/FarPol.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2777,21 +2777,40 @@ znak opisuje jedną zapisaną ścieżkę.
Elementy zachęty mogą być wyróżniane za pomocą #kolorów#.

Format:
#([[T]FFFFFFFF][:[T]BBBBBBBB])#, gdzie:
#([[T]FFFFFFFF][:[T]BBBBBBBB][:style[:[T]UUUUUUUU]])#, gdzie:

#FFFFFFFF#
Kolor tekstu w formacie aarrggbb lub indeks w palecie konsoli.

#BBBBBBBB#
Kolor tła w formacie aarrggbb lub indeks w palecie konsoli.

#style#
One or more text styles, separated by spaces:
#bold#
#italic#
#overline#
#strikeout#
#faint#
#blink#
#inverse#
#invisible#
#underline#
#underline_double#
#underline_curly#
#underline_dot#
#underline_dash#

#UUUUUUUU#
Kolor tła w formacie aarrggbb lub indeks w palecie konsoli.

#T#
Flaga "TrueColor". Jeżeli nieobecna, wartość jest traktowana jako indeks palety konsoli (0-F):
Flaga "TrueColor". Jeżeli nieobecna, wartość jest traktowana jako indeks palety konsoli (00-FF):

\00 \11 \22 \33 \44 \55 \66 \77 \88 \99 \AA \BB \CC \DD \EE \FF \-
0123456789ABCDEF

Jeżeli nie podano kolorów tekstu lub tła, zostanie użyta odpowiednia wartość domyślna.
Jeżeli nie podano koloru, zostanie użyta odpowiednia wartość domyślna.

Przykłady:

Expand Down Expand Up @@ -4425,14 +4444,18 @@ mogą go obsługiwać inaczej, np. renderować jako półprzezroczysty. XXXXX
Domyślny: \(7:0) Przykład \-
Pogrubienie: \(7:0:bold) Przykład \-
Kursywa: \(7:0:italic) Przykład \-
Podkreślenie: \(7:0:underline) Przykład \-
Podwójne: \(7:0:underline2) Przykład \-
Nadkreślenie: \(7:0:overline) Przykład \-
Przekreślenie: \(7:0:strikeout) Przykład \-
Przygaszenie: \(7:0:faint) Przykład \-
Migotanie: \(7:0:blink) Przykład \-
Odwrotność: \(7:0:inverse) Przykład \-
Niewidzialność: \(7:0:invisible) Przykład \-
Podkreślenie:
Pojedyncze: \(7:0:underline) Przykład \-
Podwójne: \(7:0:underline_double) Przykład \-
Kręcone: \(7:0:underline_curly) Przykład \-
Kropkowane: \(7:0:underline_dot) Przykład \-
Przerywane: \(7:0:underline_dash) Przykład \-

W sekcji podglądu (poniżej opcji) wyświetlany jest wynik końcowy.

Expand Down
33 changes: 28 additions & 5 deletions far/FarRus.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2836,21 +2836,40 @@ $ #Формат командной строки#
Элементы приглашения можно выделять #цветом#.

Формат:
#([[T]FFFFFFFF][:[T]BBBBBBBB])#, где:
#([[T]FFFFFFFF][:[T]BBBBBBBB][:style[:[T]UUUUUUUU]])#, где:

#FFFFFFFF#
Цвет текста в формате aarrggbb или индекс в 16-цветной палитре.

#BBBBBBBB#
Цвет фона в формате aarrggbb или индекс в 16-цветной палитре.

#style#
One or more text styles, separated by spaces:
#bold#
#italic#
#overline#
#strikeout#
#faint#
#blink#
#inverse#
#invisible#
#underline#
#underline_double#
#underline_curly#
#underline_dot#
#underline_dash#

#UUUUUUUU#
Цвет фона в формате aarrggbb или индекс в 16-цветной палитре.

#T#
Признак "труколорности", если он отсутствует - цвет считается индексом в стандартной палитре (0-F):
Признак "труколорности", если он отсутствует - цвет считается индексом в стандартной палитре (00-FF):

\00 \11 \22 \33 \44 \55 \66 \77 \88 \99 \AA \BB \CC \DD \EE \FF \-
0123456789ABCDEF

Если цвет текста или фона не указан, используется значение по умолчанию.
Если цвет не указан, используется значение по умолчанию.

Примеры:

Expand Down Expand Up @@ -4481,14 +4500,18 @@ $ #Color Picker#
Default: \(7:0) Example \-
Bold: \(7:0:bold) Example \-
Italic: \(7:0:italic) Example \-
Underline: \(7:0:underline) Example \-
Double: \(7:0:underline2) Example \-
Overline: \(7:0:overline) Example \-
Strikeout: \(7:0:strikeout) Example \-
Faint: \(7:0:faint) Example \-
Blink: \(7:0:blink) Example \-
Inverse: \(7:0:inverse) Example \-
Invisible: \(7:0:invisible) Example \-
Underline:
Single: \(7:0:underline) Example \-
Double: \(7:0:underline_double) Example \-
Curly: \(7:0:underline_curly) Example \-
Dotted: \(7:0:underline_dot) Example \-
Dashed: \(7:0:underline_dash) Example \-

The preview section below displays the final result.

Expand Down
Loading

0 comments on commit 83d90aa

Please sign in to comment.