qlstephen
qlstephen copied to clipboard
yaml files
Can you add support for .yaml and .yml files?
any update please?
it's a text files
Is there any way to tell QLStephen to open those too ?
Yes, that would be great!
In the meantime another option that worked for me is https://github.com/anthonygelibert/QLColorCode, but it requires a little modification. Look at the Readme for how to add support for additional code languages.
To summarize you have to edit the Info.plist file in the package. Add an entry under Document types > Item 0 > Document Content Type UTIs containing the value public.yaml . (for markdown you can also add net.daringfireball.markdown).
A quick tip is that you can also change the highlight theme, font, etc...
You can probably make a similar change to qlstephen but I haven't tried it.
In the meantime another option that worked for me is https://github.com/anthonygelibert/QLColorCode, but it requires a little modification. Look at the Readme for how to add support for additional code languages.
To summarize you have to edit the
Info.plistfile in the package. Add an entry underDocument types>Item 0>Document Content Type UTIscontaining the valuepublic.yaml. (for markdown you can also addnet.daringfireball.markdown).A quick tip is that you can also change the highlight theme, font, etc...
You can probably make a similar change to qlstephen but I haven't tried it.
Awesome, that worked for me! Are you planning to submit a pull request to QLColorCode that implements your changes ?
It's working for me, I just added
<string>public.yaml</string>
to
<key>LSItemContentTypes</key>
array
It's working for me, I just added
<string>public.yaml</string>to
<key>LSItemContentTypes</key>array
Yay, that worked!
Created a PR. https://github.com/whomwah/qlstephen/pull/100