-
Notifications
You must be signed in to change notification settings - Fork 48
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML/XHTML types are not working with QLColorCode after updating LSItemContentTypes #67
Comments
No, Catalina cannot allow to customize the quicklook for html files. |
I wasted 2 hours to make it work. Ehh. I assume this is a general rule of any system-wide installed qlgenerators from /System/Library/QuickLook ? |
My assumption is definitely wrong. |
Is not documented, but so far no one has been able to customize the preview for a number of formats: plist, xml, html, ts, jpg, gif, png... |
OK, I found few opened issues regarding this story on other gl generators, so I am up to date now ;) I notice you are quite active about this issue. However, maybe you missed this one: whomwah/qlstephen#87 Anyway, I tried to create several dynamic UTIs for HTML:
I added encoded results to the supported list. Unfortunately, it didn't work. However, I was successful to launch the preview manually: |
Oh, very interesting indeed! I hadn't seen that comment. I finally understood how dynamic UTIs are generated. I had always wondered if they were unique to the machine in which they are generated or universal. Now I know they are universal. I did a quick test to add the support for the xml format but was unsuccessful with my application. Some more investigation will be needed. |
IMHO its not possible at the moment. |
I only tried once to remove the system qlgenerator and I also saw that it continued to be used despite being removed. However, I prefer to avoid tampering with system files, so I didn't go through that kind of test. |
Hi,
I added the following lines into
~/Library/QuickLook/QLColorCode.qlgenerator/Contents/Info.plist
:Log out/log in,
qlmanage -r
or moving~/Library/QuickLook/QLColorcode.qlgenerator
out of the directory and back. Nothing helped. The QL still launches the system Web.qlgenerator.I also tried to disable the html/xhtml by commenting out the items from
/System//Library/QuickLook/QLColorcode.qlgenerator
, this however requires disabling SIP to save the changes (it didn't save the file even withsudo
).Is it possible to see HTML source code instead of a preview of the webpage in macOS Catalina?
PS. Of course the files I try have following output:
$ mdls -name kMDItemContentType test.html kMDItemContentType = "public.html"
The text was updated successfully, but these errors were encountered: