sbarex / SourceCodeSyntaxHighlight

Quick Look extension for highlight source code files on macOS 10.15 and later.
GNU General Public License v3.0
3.02k stars 72 forks source link

Option to disable ligatures #144

Closed archetyped closed 2 years ago

archetyped commented 2 years ago

Hi, how can we disable usage of ligatures in the quicklook preview?

For example, I would like to use a front that supports ligatures (e.g. Fira Code), but do not want ligatures to be displayed as they are less distinct at a glance (e.g. ligatures for == and ===, etc.).

Thank you.

sbarex commented 2 years ago

I haven't tested it but try these general settings:

archetyped commented 2 years ago

Thanks, I was able to find the custom CSS option after enabling advanced settings.

However, while the custom CSS is applied to the previews in the Formats tab, it is not reflected in previews of actual files. Also, when the settings window is closed and reopened, the custom CSS field is empty even when manually saving the settings before closing.

Interestingly, custom CSS styles are saved for format-specific overrides via the Formats tab.

sbarex commented 2 years ago

Fixed the css bug on release 2.1.7.

archetyped commented 2 years ago

Thanks!