Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Possible to escape highlighted/dimmed angle bracket syntax in playlist view? (Read 1182 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Possible to escape highlighted/dimmed angle bracket syntax in playlist view?

I'm in the process of configuring my UI using DUI (previously used CUI in FB2K v1), and I am unable to recreate a string dimmed in the same way as I did it in CUI because part of the string is meant to have literal opened and closed angle brackets.

A simplified example used as a custom column in playlist view:

Code: [Select]
%artist%[ <<'<'[%artistsort%][%artistsortorder%]'>'>>]

The goal is to have the artist sort value listed after the artist value but dimmed and within angle brackets. Using single quotes doesn't help to escape them. The quoted brackets are treated as dimming syntax, leading to the artist sort value being strongly dimmed rather than only normally (two levels) dimmed as desired.

Is this possible? Or is this a bug, or potentially something never implemented? It would be nice if we could escape them like other special characters. A quick test revealed that even an unpaired angle bracket doesn't render as text unfortunately.

Thanks.

Re: Possible to escape highlighted/dimmed angle bracket syntax in playlist view?

Reply #1
Try using $char(60) and $char(62)

Re: Possible to escape highlighted/dimmed angle bracket syntax in playlist view?

Reply #2
Although it doesn't address the possible bug, this is indeed a great workaround. Thanks!

The example fixed:

Code: [Select]
%artist%[ <<$char(60)[%artistsort%][%artistsortorder%]$char(62)>>]

Re: Possible to escape highlighted/dimmed angle bracket syntax in playlist view?

Reply #3
Nice find.
It's a bug alright, but it's so old it has to be treated like a feature / can't be changed in a minor update because someone's configuration may break.
foobar2000 version 2.25 will change this behavior.
Microsoft Windows: We can't script here, this is bat country.