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

Disable Beautify on Save on per-language basis #118

Closed
garrows opened this issue Oct 7, 2014 · 10 comments · Fixed by #141
Closed

Disable Beautify on Save on per-language basis #118

garrows opened this issue Oct 7, 2014 · 10 comments · Fixed by #141
Assignees
Milestone

Comments

@garrows
Copy link

garrows commented Oct 7, 2014

Hi,
Love this package.

Is there a way to disable it from formatting certain languages?

My colleague hates how it formats .less files and therefore disables the beautify on save feature. Then whenever he touches code, the formatting is wrong.

Cheers

@Glavin001 Glavin001 self-assigned this Oct 7, 2014
@Glavin001 Glavin001 added this to the v1.0.0 milestone Oct 7, 2014
@Glavin001
Copy link
Owner

Not as of yet. This is a potential feature that could be in a future release. Thanks for the idea.

@Glavin001
Copy link
Owner

@garrows if you colleague has some time I would love to see an Issue with the problems they are having with the LESS formating. The LESS beautification is handled by Pretty-Diff and the maintainer of Pretty-Diff has been very active in solving bugs and adding new features. There may already be support in Pretty-Diff for the desired style and a configuration is all that needs to be changed / maybe I need to update the Atom Beautify dependencies.
I hope something can be done to improve your experience with Atom Beautify. Thanks for your feedback!

@Glavin001 Glavin001 changed the title Disable Languages Disable Languages for Beautify on Save Oct 8, 2014
@minimit
Copy link

minimit commented Oct 15, 2014

It would be useful also to add .txt files to that feature

I keep getting this error when i save .txt

Unsupported language for grammar 'Plain Text'

edit: I see you can disable error messages, nice!

@garrows
Copy link
Author

garrows commented Oct 16, 2014

You can disable the errors already at least.
On 16/10/2014 12:36 am, "Riccardo Caroli" [email protected] wrote:

It would be useful also to add .txt files to that feature

I keep getting this error when i save .txt
Unsupported language for grammar 'Plain Text'


Reply to this email directly or view it on GitHub
#118 (comment)
.

@MetaMemoryT
Copy link
Contributor

How do you disable errors?

@MetaMemoryT
Copy link
Contributor

I would like to disable markdown-beautify.coffee for github markdown and pandoc is not installed

@Glavin001
Copy link
Owner

You can use the Atom Beautify package options: https://github.com/Glavin001/atom-beautify#package-options

So in your case, look for muteUnsupportedLanguageErrors in the package's options, which would show up as Mute Unsupported Language Errors. Turn that on, to true.

@MetaMemoryT
Copy link
Contributor

Thanks

@Glavin001 Glavin001 changed the title Disable Languages for Beautify on Save Disable Beautify on Save on per-language basis Oct 26, 2014
@MetaMemoryT
Copy link
Contributor

I implemented this feature. See #141

Glavin001 added a commit that referenced this issue Nov 16, 2014
Also add documentation on `disabledLanguages` package option
@Glavin001
Copy link
Owner

Published to v0.17.0

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

Successfully merging a pull request may close this issue.

4 participants