SourceCodeSyntaxHighlight icon indicating copy to clipboard operation
SourceCodeSyntaxHighlight copied to clipboard

Custom Quicklook size not working

Open danscheer opened this issue 2 years ago • 3 comments

Changing the size doesn't work.

RTF Mode.

Version 2.1.20

danscheer avatar Jan 06 '24 17:01 danscheer

Confirmed on Sonoma 14.5 on Macbook Pro M3

Version 2.1.24

ralphrmartin avatar Jun 29 '24 18:06 ralphrmartin

Seems to only work with HTML mode.

runxel avatar Mar 21 '25 22:03 runxel

Confirmed on 14.8.1 (2.1.26) and 26.0.1 (2.1.26). While attempting to gather more info about this issue, I ran into the following and can't say if they're related:

This was the only line in the temp file created in /var/…/colorize......

example.sh: Property List error: Unexpected character # at line 1 / JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0.

I believe I traced this to a newline character at the top of this file: "/Applications/Syntax Highlight.app/Contents/Resources/highlight/langDefs/sh.lang"

Same thing here: "/Applications/Syntax Highlight.app/Contents/Resources/highlight/share/langDefs/shellscript.lang"

The following happened to stdout while manually reconstructing the command from the error log to test and check for environment issues:

cannot open filetypes.conf: No such file or directory highlight: cannot open plugins/about.lua: No such file or directory in plugins/about.lua

I saw in the TODO that Lua plugins are sometimes not embedded. It looked to me like the files were in the correct location and didn't have unusual permissions.

runxel is correct that switching to HTML works. Wish I'd tried that sooner.

fantismo avatar Oct 15 '25 00:10 fantismo