Skip to content
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

yaml files #95

Open
mkartsev86 opened this issue Mar 19, 2020 · 9 comments
Open

yaml files #95

mkartsev86 opened this issue Mar 19, 2020 · 9 comments

Comments

@mkartsev86
Copy link

Can you add support for .yaml and .yml files?

@leewi9
Copy link

leewi9 commented Apr 1, 2020

any update please?

@mkartsev86
Copy link
Author

it's a text files

@cscetbon
Copy link

cscetbon commented Apr 8, 2020

Is there any way to tell QLStephen to open those too ?

@ghost
Copy link

ghost commented Apr 9, 2020

Yes, that would be great!

@mysticflute
Copy link

mysticflute commented May 20, 2020

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.

@JJGO
Copy link

JJGO commented May 20, 2020

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.

Awesome, that worked for me! Are you planning to submit a pull request to QLColorCode that implements your changes ?

@ruslaniv
Copy link

ruslaniv commented Jul 5, 2020

It's working for me, I just added

<string>public.yaml</string>

to

<key>LSItemContentTypes</key>

array

@ghost
Copy link

ghost commented Jul 8, 2020

It's working for me, I just added

<string>public.yaml</string>

to

<key>LSItemContentTypes</key>

array

Yay, that worked!

@ahmetgeymen
Copy link

Created a PR.
#100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants