I :heart: this package, and would :heart: to be able to beautify nginx.conf files with it
+1
+1
+1
Atom's auto indent feature works pretty well for nginx.conf actually. Still, it would be nice to be able to use the same shortcut
+1
+1
This may work: http://stackoverflow.com/a/34958345/2578205
I recommend the Python code.
I would accept a Pull Request adding a Nginx language and beautifier: https://github.com/Glavin001/atom-beautify/blob/master/docs/add-languages-and-beautifiers.md
Example language: https://github.com/Glavin001/atom-beautify/blob/master/src/languages/python.coffee
Example beautifier: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/autopep8.coffee
Let me know if you have any questions!
Update: Actually, it looks simple enough to re-write in JavaScript/Node.js. So I recommend that someone creates a Node.js package implementing Nginx beautification, publish it to npm, and then create a simple beautifier on Atom-Beautify. For example, this was done to add Pug (formerly Jade) support: https://github.com/Glavin001/atom-beautify/issues/199
I'm working on it right now, expect a PR in a few minutes
Published to v0.29.19
Most helpful comment
Atom's auto indent feature works pretty well for nginx.conf actually. Still, it would be nice to be able to use the same shortcut