New text "style" options (bold, italic, underline, etc)

You have encountered a problem using Far macros? Here you can get help.
Epsteyn
Posts: 16
Joined: Sun 15 Nov, 2020 14:21
Has thanked: 2 times

New text "style" options (bold, italic, underline, etc)

Post by Epsteyn »

Latest post of the previous page:

Please, can someone explain to me how does "inherit" operates? Thank you
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

New text "style" options (bold, italic, underline, etc)

Post by DrKnS »

Epsteyn, it's somewhat similar to color transparency: if you have multiple highlight groups, and one of them defines one or more text attributes and has "continue processing" set, then, if the subsequent group has "inherit" set, its text attributes will be merged with the attributes defined in the previous group.
Epsteyn
Posts: 16
Joined: Sun 15 Nov, 2020 14:21
Has thanked: 2 times

New text "style" options (bold, italic, underline, etc)

Post by Epsteyn »

DrKnS wrote: Mon 16 Aug, 2021 00:51 Epsteyn, it's somewhat similar to color transparency: if you have multiple highlight groups, and one of them defines one or more text attributes and has "continue processing" set, then, if the subsequent group has "inherit" set, its text attributes will be merged with the attributes defined in the previous group.
Understood.
Is there any help file or online manual to learn how the file highlight options functions operate?
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

New text "style" options (bold, italic, underline, etc)

Post by DrKnS »

Epsteyn wrote: Mon 16 Aug, 2021 22:03 Is there any help file or online manual to learn how the file highlight options functions operate?
F1 in various dialogs & menus (could be quite outdated).
Epsteyn
Posts: 16
Joined: Sun 15 Nov, 2020 14:21
Has thanked: 2 times

New text "style" options (bold, italic, underline, etc)

Post by Epsteyn »

F1 in various dialogs & menus (could be quite outdated).
the "color" submenu (which contains the new styles option) does not have a help option. It would be very helpful to have it.
User avatar
HaRT
Moderator
Posts: 10806
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 220 times
Been thanked: 357 times

New text "style" options (bold, italic, underline, etc)

Post by HaRT »

DrKnS wrote: Sun 15 Aug, 2021 19:21
HaRT wrote: Sun 15 Aug, 2021 03:56 I suggest giving it some visual distinction
Thank you, added.
Thank you for the hotkeys as well!
Is it hard to make the hotkeys of Foreground and Background work as expected (that is, give focus to the respective palette control)? Currently, they seem to have no effect…
Фар есть инструмент, а не нянька. © 2009 DrKnS
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

New text "style" options (bold, italic, underline, etc)

Post by DrKnS »

HaRT wrote: Thu 19 Aug, 2021 02:04 Is it hard to make the hotkeys of Foreground and Background work as expected (that is, give focus to the respective palette control)? Currently, they seem to have no effect…
Not really, 5880.
Note: the effect is different in the transparency-aware dialog version, e.g. in files highlighting.
DeadlySquad13
Posts: 2
Joined: Sun 04 Sep, 2022 12:59

New text "style" options (bold, italic, underline, etc)

Post by DeadlySquad13 »

Hello! What do these new style options require? I have wezterm with powershell 7.3 (preview) installed.
If I enter command such as

Code: Select all

“$($PSStyle.Reset)This is how you $($PSStyle.bold)bold$($PSStyle.BoldOff) text in PowerShell”
or

Code: Select all

“$($PSStyle.Reset)This is how you $($PSStyle.italic)italic$($PSStyle.ItalicOff) text in PowerShell”
it will be rendered properly:
image.png
image.png (9.7 KiB) Viewed 2539 times
image.png
image.png (9.92 KiB) Viewed 2539 times
If I change something in far, nothing changes, though:
image.png
image.png
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

New text "style" options (bold, italic, underline, etc)

Post by DrKnS »

DeadlySquad13, you need to turn on "Use Virtual Terminal for rendering" in interface settings first.
DeadlySquad13
Posts: 2
Joined: Sun 04 Sep, 2022 12:59

New text "style" options (bold, italic, underline, etc)

Post by DeadlySquad13 »

Oh, thanks, it helped!
Post Reply

Return to “Support and Troubleshooting”