Skip to content

Commit

Permalink
See #57. Add Uncrustify beautifier for multiple language support.
Browse files Browse the repository at this point in the history
Uncrustify Language support:
- C
- C++
- C#
- Objective-C
- Java
- D
- Pawn
- Vala

Closes #45. Add Java Support.

Currently, use the configPath option to set an absolute or relative path
(relative to the currently beautified file) to specific the .cfg file
for Uncrustify to use as configuration options.
  • Loading branch information
Glavin001 committed Aug 8, 2014
1 parent faa6236 commit 5d6751c
Show file tree
Hide file tree
Showing 14 changed files with 4,824 additions and 62 deletions.
33 changes: 30 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# [atom-beautify](https://github.com/donaldpipowitch/atom-beautify)

[![Gitter chat](https://badges.gitter.im/Glavin001/atom-beautify.png)](https://gitter.im/Glavin001/atom-beautify)

> [Beautify](https://github.com/einars/js-beautify)
HTML (including [Handlebars](http://handlebarsjs.com/)),
CSS (including [Sass](http://sass-lang.com/) and [LESS](http://lesscss.org/)),
JavaScript, and much more in Atom.

Atom Package: https://atom.io/packages/atom-beautify

```bash
apm install atom-beautify
```

Or Settings/Preferences ➔ Packages ➔ Search for `atom-beautify`


## Language Support

- [x] JavaScript and JSON
Expand All @@ -25,12 +34,30 @@ Atom Package: https://atom.io/packages/atom-beautify
- [x] [Ruby](https://github.com/donaldpipowitch/atom-beautify/issues/25)
- Requires [RBeautify](https://github.com/erniebrodeur/ruby-beautify)
- [x] [CoffeeScript](https://github.com/donaldpipowitch/atom-beautify/issues/31)
- [x] [Java](https://github.com/Glavin001/atom-beautify/issues/45)
- Requires [Uncrustify](http://sourceforge.net/projects/uncrustify/)
- [x] [C](https://github.com/Glavin001/atom-beautify/issues/57)
- Requires [Uncrustify](http://sourceforge.net/projects/uncrustify/)
- [x] [C++](https://github.com/Glavin001/atom-beautify/issues/57)
- Requires [Uncrustify](http://sourceforge.net/projects/uncrustify/)
- [x] [C#](https://github.com/Glavin001/atom-beautify/issues/57)
- Requires [Uncrustify](http://sourceforge.net/projects/uncrustify/)
- [x] [Objective-C](https://github.com/Glavin001/atom-beautify/issues/57)
- Requires [Uncrustify](http://sourceforge.net/projects/uncrustify/)
- [x] [D](https://github.com/Glavin001/atom-beautify/issues/57)
- Requires [Uncrustify](http://sourceforge.net/projects/uncrustify/)
- [x] [Pawn](https://github.com/Glavin001/atom-beautify/issues/57)
- Requires [Uncrustify](http://sourceforge.net/projects/uncrustify/)
- [x] [Vala](https://github.com/Glavin001/atom-beautify/issues/57)
- Requires [Uncrustify](http://sourceforge.net/projects/uncrustify/)

### Road Map

- [ ] [TypeScript support](https://github.com/Glavin001/atom-beautify/issues/49)
- [ ] [Java support](https://github.com/Glavin001/atom-beautify/issues/45)
- [ ] [Perl support](https://github.com/Glavin001/atom-beautify/issues/33)
#### Language support

- [ ] [TypeScript](https://github.com/Glavin001/atom-beautify/issues/49)
- [ ] [Perl](https://github.com/Glavin001/atom-beautify/issues/33)


## Usage

Expand Down
3 changes: 2 additions & 1 deletion examples/simple-jsbeautifyrc/.jsbeautifyrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"max_preserve_newlines": 2,
"jslint_happy": true,
"indent_handlebars": true,
"object": {}
"object": {},
"configPath": "uncrustify.cfg"
}
Loading

0 comments on commit 5d6751c

Please sign in to comment.