SourceCodeSyntaxHighlight icon indicating copy to clipboard operation
SourceCodeSyntaxHighlight copied to clipboard

Weird RTF dark scheme behavior

Open MotasR opened this issue 11 months ago • 4 comments

Version 2.1.24 (73) macOS 15.1.1

Changing dark scheme only affects the font colors and fails to change the background of the preview. Only happens on RFT render engine.

No customized formats or colors, happens with all files.

Reinstall, reboot, disabling and re-adding permissions, and disabling other QL extensions didn't help.

https://github.com/user-attachments/assets/66552ecf-ad34-48bd-ad3c-f2fa54f14310

MotasR avatar Dec 07 '24 21:12 MotasR

This is a macOS behavior that automatically alters the background color on rtf text field. I suggest to use the html rendering engine. RTF was used in older versions of macOS to work around a number of bugs in html formatting. I will probably remove the ability to use the rtf engine altogether in the future.

sbarex avatar Dec 08 '24 11:12 sbarex

Thanks for the clarification! It seems that Sequoia broke this finally.

However, two things:

  1. I've noticed that HTML rendering is a bit slower than RFT for me – is that possible?
  2. Is there an option to remove the footer in the HTML preview?

MotasR avatar Dec 08 '24 12:12 MotasR

Thanks for the clarification! It seems that Sequoia broke this finally.

However, two things:

1. I've noticed that HTML rendering is a bit slower than RFT for me – is that possible?

I have never done a speed test...

2. Is there an option to remove the footer in the HTML preview?

On the general settings, uncheck "show about info".

sbarex avatar Dec 08 '24 20:12 sbarex

Known issue https://github.com/sbarex/SourceCodeSyntaxHighlight/issues/202

khurshid-alam avatar Dec 16 '24 08:12 khurshid-alam

On the general settings, uncheck "show about info".

Only works if you enable advanced settings in the menu View > Show advanced settings

I will probably remove the ability to use the rtf engine altogether in the future.

@sbarex please bear in mind that although HTML rendering shows a better result, it doesn't render the text in the file icon like RTF does

With HTML:

Image

With RTF:

Image

feinstein avatar Oct 28 '25 00:10 feinstein