Merge branch 'master' into use-local-phpcs-settings
This commit is contained in:
commit
08ca36e67b
|
@ -0,0 +1,12 @@
|
||||||
|
engines:
|
||||||
|
coffeelint:
|
||||||
|
enabled: true
|
||||||
|
eslint:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
ratings:
|
||||||
|
paths:
|
||||||
|
- "**.coffee"
|
||||||
|
- "**.js"
|
||||||
|
|
||||||
|
exclude_paths:
|
|
@ -89,7 +89,6 @@ before_install:
|
||||||
# Sass language support
|
# Sass language support
|
||||||
- gem install sass
|
- gem install sass
|
||||||
# Python language support
|
# Python language support
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python; fi
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo chmod 777 -R /opt/python; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo chmod 777 -R /opt/python; fi
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install --upgrade autopep8
|
- pip install --upgrade autopep8
|
||||||
|
@ -139,3 +138,5 @@ before_install:
|
||||||
- opam install --yes ocp-indent
|
- opam install --yes ocp-indent
|
||||||
# Crystal
|
# Crystal
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install crystal-lang; fi
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install crystal-lang; fi
|
||||||
|
# Bash
|
||||||
|
- pip install beautysh
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
# dev
|
# dev
|
||||||
|
- Add support for additional wrap attribute options of js-beautify (html): force-aligned and force-expand-multiline.
|
||||||
- Update to `remark`'s new API and fix [#1196](https://github.com/Glavin001/atom-beautify/issues/1196)
|
- Update to `remark`'s new API and fix [#1196](https://github.com/Glavin001/atom-beautify/issues/1196)
|
||||||
- Add beautifier for the Lua language.
|
- Add beautifier for the Lua language.
|
||||||
- Add [ocp-indent](https://github.com/OCamlPro/ocp-indent) beautifier for the OCaml language.
|
- Add [ocp-indent](https://github.com/OCamlPro/ocp-indent) beautifier for the OCaml language.
|
||||||
- Add [elm-format](https://github.com/avh4/elm-format) beautifier for the Elm language.
|
- Add [elm-format](https://github.com/avh4/elm-format) beautifier for the Elm language.
|
||||||
- Add [clang-format](http://clang.llvm.org/docs/ClangFormat.html) beautifier for C/C++/Obj-C languages.
|
- Add [clang-format](http://clang.llvm.org/docs/ClangFormat.html) beautifier for C/C++/Obj-C languages.
|
||||||
- Add [yapf](http://github.com/google/yapf) beautifier for Python.
|
- Add [yapf](http://github.com/google/yapf) beautifier for Python.
|
||||||
|
- Add [ESLint](https://github.com/eslint/eslint) beautifier for Javascript
|
||||||
- Closes [#776] (https://github.com/Glavin001/atom-beautify/issues/776) Add support for `collapse-preserve-inline` brace_style for javascript.
|
- Closes [#776] (https://github.com/Glavin001/atom-beautify/issues/776) Add support for `collapse-preserve-inline` brace_style for javascript.
|
||||||
- Closes [#786](https://github.com/Glavin001/atom-beautify/issues/786) YAPF configuration files are ignored.
|
- Closes [#786](https://github.com/Glavin001/atom-beautify/issues/786) YAPF configuration files are ignored.
|
||||||
- Fix phpcbf hanging issue by closing stdin. See [#893](https://github.com/Glavin001/atom-beautify/issues/893)
|
- Fix phpcbf hanging issue by closing stdin. See [#893](https://github.com/Glavin001/atom-beautify/issues/893)
|
||||||
|
|
|
@ -7,7 +7,7 @@ Before creating any new Issues, please be sure to search through the existing At
|
||||||
1. Generate your debugging information:
|
1. Generate your debugging information:
|
||||||
1a. In the Atom [command-palette](https://atom.io/packages/command-palette),
|
1a. In the Atom [command-palette](https://atom.io/packages/command-palette),
|
||||||
search for and run the command `Atom Beautify: Help Debug Editor`.
|
search for and run the command `Atom Beautify: Help Debug Editor`.
|
||||||
The debugging results will be copied to your clipboard.
|
The debugging results will be shown in a new Atom text editor tab.
|
||||||
1b. Create a new Gist at https://gist.github.com/
|
1b. Create a new Gist at https://gist.github.com/
|
||||||
1c. Create a file in your new Gist called `debug.md`.
|
1c. Create a file in your new Gist called `debug.md`.
|
||||||
1d. Paste your debugging results from Atom beautify into `debug.md` file in your Gist.
|
1d. Paste your debugging results from Atom beautify into `debug.md` file in your Gist.
|
||||||
|
|
|
@ -45,5 +45,5 @@ I have:
|
||||||
- [ ] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
|
- [ ] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
|
||||||
so I know this is not a duplicate issue
|
so I know this is not a duplicate issue
|
||||||
- [ ] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
|
- [ ] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
|
||||||
- [ ] Generated debugging information and added link for `debug.md` Gist to this issue
|
- [ ] Generated debugging information by executing `Atom Beautify: Help Debug Editor` command in Atom and added link for `debug.md` Gist to this issue
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
|
- [Beautifiers](#beautifiers)
|
||||||
- [Language Support](#language-support)
|
- [Language Support](#language-support)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [Selection of Code](#selection-of-code)
|
- [Selection of Code](#selection-of-code)
|
||||||
|
@ -54,6 +55,11 @@ Thank you.
|
||||||
Atom-Beautify is going to be completely rewritten with [Unibeautify](https://github.com/Unibeautify/unibeautify) at its core!
|
Atom-Beautify is going to be completely rewritten with [Unibeautify](https://github.com/Unibeautify/unibeautify) at its core!
|
||||||
See [`unibeautify` branch](../../tree/unibeautify) for work in progress and [Issue #1174](https://github.com/Glavin001/atom-beautify/issues/1174).
|
See [`unibeautify` branch](../../tree/unibeautify) for work in progress and [Issue #1174](https://github.com/Glavin001/atom-beautify/issues/1174).
|
||||||
|
|
||||||
|
## Beautifiers
|
||||||
|
|
||||||
|
Some of the supported beautifiers are developed for Node.js and are automatically installed when Atom-Beautify is installed. However, other beautifiers are command-line interface (CLI) applications and require you to manually install them.
|
||||||
|
|
||||||
|
{{beautifiers-info beautifiers}}
|
||||||
|
|
||||||
## Language Support
|
## Language Support
|
||||||
|
|
||||||
|
|
95
README.md
95
README.md
|
@ -20,6 +20,7 @@
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
|
- [Beautifiers](#beautifiers)
|
||||||
- [Language Support](#language-support)
|
- [Language Support](#language-support)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [Selection of Code](#selection-of-code)
|
- [Selection of Code](#selection-of-code)
|
||||||
|
@ -46,60 +47,110 @@ Or Settings/Preferences ➔ Packages ➔ Search for `atom-beautify`
|
||||||
|
|
||||||
By default `Anonymous Analytics` is enabled.
|
By default `Anonymous Analytics` is enabled.
|
||||||
If you do not wish to have usage data sent to Google Analytics then please disable `Anonymous Analytics` option before using Atom-Beautify.
|
If you do not wish to have usage data sent to Google Analytics then please disable `Anonymous Analytics` option before using Atom-Beautify.
|
||||||
See [`Anonymous Analytics` section of docs](https://github.com/Glavin001/atom-beautify/blob/master/docs/options.md#anonymous-analytics) for details.
|
See [`Anonymous Analytics` section of docs](docs/options.md#anonymous-analytics) for details.
|
||||||
Thank you.
|
Thank you.
|
||||||
|
|
||||||
### Next Version: [Unibeautify](https://github.com/Unibeautify/unibeautify)
|
### Next Version: [Unibeautify](https://github.com/Unibeautify/unibeautify)
|
||||||
|
|
||||||
Atom-Beautify is going to be completely rewritten with [Unibeautify](https://github.com/Unibeautify/unibeautify) at its core!
|
Atom-Beautify is going to be completely rewritten with [Unibeautify](https://github.com/Unibeautify/unibeautify) at its core!
|
||||||
See [`unibeautify` branch](https://github.com/Glavin001/atom-beautify/tree/unibeautify) for work in progress and [Issue #1174](https://github.com/Glavin001/atom-beautify/issues/1174).
|
See [`unibeautify` branch](../../tree/unibeautify) for work in progress and [Issue #1174](https://github.com/Glavin001/atom-beautify/issues/1174).
|
||||||
|
|
||||||
|
## Beautifiers
|
||||||
|
|
||||||
|
Some of the supported beautifiers are developed for Node.js and are automatically installed when Atom-Beautify is installed. However, other beautifiers are command-line interface (CLI) applications and require you to manually install them.
|
||||||
|
|
||||||
|
| Beautifier | Is Pre-Installed? | Installation Instructions |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| autopep8 | :x: | Go to https://github.com/hhatto/autopep8 and follow the instructions. |
|
||||||
|
| beautysh | :x: | Go to https://github.com/bemeurer/beautysh and follow the instructions. |
|
||||||
|
| clang-format | :x: | Go to https://clang.llvm.org/docs/ClangFormat.html and follow the instructions. |
|
||||||
|
| cljfmt | :white_check_mark: | Nothing! |
|
||||||
|
| Coffee Formatter | :white_check_mark: | Nothing! |
|
||||||
|
| coffee-fmt | :white_check_mark: | Nothing! |
|
||||||
|
| Crystal | :x: | Go to http://crystal-lang.org and follow the instructions. |
|
||||||
|
| CSScomb | :white_check_mark: | Nothing! |
|
||||||
|
| dfmt | :x: | Go to https://github.com/Hackerpilot/dfmt and follow the instructions. |
|
||||||
|
| elm-format | :x: | Go to https://github.com/avh4/elm-format and follow the instructions. |
|
||||||
|
| erl_tidy | :x: | Go to http://erlang.org/doc/man/erl_tidy.html and follow the instructions. |
|
||||||
|
| ESLint Fixer | :white_check_mark: | Nothing! |
|
||||||
|
| formatR | :x: | Go to https://github.com/yihui/formatR and follow the instructions. |
|
||||||
|
| Fortran Beautifier | :x: | Go to https://www.gnu.org/software/emacs/ and follow the instructions. |
|
||||||
|
| Gherkin formatter | :white_check_mark: | Nothing! |
|
||||||
|
| gofmt | :x: | Go to https://golang.org/cmd/gofmt/ and follow the instructions. |
|
||||||
|
| hh_format | :x: | Go to http://hhvm.com/ and follow the instructions. |
|
||||||
|
| HTML Beautifier | :x: | Go to https://github.com/threedaymonk/htmlbeautifier and follow the instructions. |
|
||||||
|
| JS Beautify | :white_check_mark: | Nothing! |
|
||||||
|
| JSCS Fixer | :white_check_mark: | Nothing! |
|
||||||
|
| Latex Beautify | :x: | Go to https://github.com/cmhughes/latexindent.pl and follow the instructions. |
|
||||||
|
| Lua beautifier | :x: | Go to https://www.perl.org/ and follow the instructions. |
|
||||||
|
| Marko Beautifier | :white_check_mark: | Nothing! |
|
||||||
|
| ocp-indent | :x: | Go to https://www.typerex.org/ocp-indent.html and follow the instructions. |
|
||||||
|
| Perltidy | :x: | Go to http://perltidy.sourceforge.net/ and follow the instructions. |
|
||||||
|
| PHP-CS-Fixer | :x: | Go to https://github.com/FriendsOfPHP/PHP-CS-Fixer and follow the instructions. |
|
||||||
|
| PHPCBF | :x: | Go to http://php.net/manual/en/install.php and follow the instructions. |
|
||||||
|
| Pretty Diff | :white_check_mark: | Nothing! |
|
||||||
|
| Pug Beautify | :white_check_mark: | Nothing! |
|
||||||
|
| puppet-lint | :x: | Go to http://puppet-lint.com/ and follow the instructions. |
|
||||||
|
| Remark | :white_check_mark: | Nothing! |
|
||||||
|
| Rubocop | :x: | Go to https://github.com/bbatsov/rubocop and follow the instructions. |
|
||||||
|
| Ruby Beautify | :x: | Go to https://github.com/erniebrodeur/ruby-beautify and follow the instructions. |
|
||||||
|
| rustfmt | :x: | Go to https://github.com/nrc/rustfmt and follow the instructions. |
|
||||||
|
| SassConvert | :x: | Go to http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax and follow the instructions. |
|
||||||
|
| sqlformat | :x: | Go to https://github.com/andialbrecht/sqlparse and follow the instructions. |
|
||||||
|
| stylish-haskell | :x: | Go to https://github.com/jaspervdj/stylish-haskell and follow the instructions. |
|
||||||
|
| Tidy Markdown | :white_check_mark: | Nothing! |
|
||||||
|
| TypeScript Formatter | :white_check_mark: | Nothing! |
|
||||||
|
| Uncrustify | :x: | Go to https://github.com/uncrustify/uncrustify and follow the instructions. |
|
||||||
|
| Vue Beautifier | :white_check_mark: | Nothing! |
|
||||||
|
| yapf | :x: | Go to https://github.com/google/yapf and follow the instructions. |
|
||||||
|
|
||||||
## Language Support
|
## Language Support
|
||||||
|
|
||||||
See [all supported options in the documentation at `docs/options.md`](https://github.com/Glavin001/atom-beautify/blob/master/docs/options.md).
|
See [all supported options in the documentation at `docs/options.md`](docs/options.md).
|
||||||
|
|
||||||
| Language | Grammars | File Extensions | Supported Beautifiers |
|
| Language | Grammars | File Extensions | Supported Beautifiers |
|
||||||
| --- | --- | --- | ---- |
|
| --- | --- | --- | ---- |
|
||||||
| Apex | `Apex` |`.cls`, `.trigger` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
| Apex | `Apex` |`.cls`, `.trigger` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
||||||
| Arduino | `Arduino` |`.ino`, `.pde` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
| Arduino | `Arduino` |`.ino`, `.pde` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
||||||
|
| Bash | `Shell Script` |`.bash`, `.sh` | [`beautysh`](https://github.com/bemeurer/beautysh) (Default) |
|
||||||
| C | `C`, `opencl` |`.h`, `.c`, `.cl` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
|
| C | `C`, `opencl` |`.h`, `.c`, `.cl` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
|
||||||
| Coldfusion | `html` |`.cfm`, `.cfml`, `.cfc` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| Coldfusion | `html` |`.cfm`, `.cfml`, `.cfc` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
| Clojure | `Clojure` |`.clj`, `.cljs`, `.edn` | [`cljfmt`](https://github.com/snoe/node-cljfmt) (Default) |
|
| Clojure | `Clojure` |`.clj`, `.cljs`, `.edn` | [`cljfmt`](https://github.com/snoe/node-cljfmt) (Default) |
|
||||||
| CoffeeScript | `CoffeeScript` |`.coffee` | [`Coffee Formatter`](https://github.com/Glavin001/Coffee-Formatter), [`coffee-fmt`](https://github.com/sterpe/coffee-fmt) (Default) |
|
| CoffeeScript | `CoffeeScript` |`.coffee` | [`Coffee Formatter`](https://github.com/Glavin001/Coffee-Formatter), [`coffee-fmt`](https://github.com/sterpe/coffee-fmt) (Default) |
|
||||||
| C++ | `C++` |`.h`, `.hh`, `.cc`, `.cpp`, `.cxx`, `.C`, `.c++`, `.hpp`, `.hxx`, `.h++` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
|
| C++ | `C++` |`.h`, `.hh`, `.cc`, `.cpp`, `.cxx`, `.C`, `.cu`, `.c++`, `.hpp`, `.hxx`, `.h++`, `.cuh` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
|
||||||
| Crystal | `Crystal` |`.cr` | [`Crystal`](http://crystal-lang.org) (Default) |
|
| Crystal | `Crystal` |`.cr` | [`Crystal`](http://crystal-lang.org) (Default) |
|
||||||
| C# | `C#` |`.cs` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
| C# | `C#` |`.cs` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
||||||
| CSS | `CSS` |`.css` | [`CSScomb`](https://github.com/csscomb/csscomb.js), [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff), [`SassConvert`](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax) |
|
| CSS | `CSS` |`.css` | [`CSScomb`](https://github.com/csscomb/csscomb.js), [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff), [`SassConvert`](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax) |
|
||||||
| CSV | `CSV` |`.csv` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| CSV | `CSV` |`.csv` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
| D | `D` |`.d` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`dfmt`](https://github.com/Hackerpilot/dfmt) |
|
| D | `D` |`.d` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`dfmt`](https://github.com/Hackerpilot/dfmt) |
|
||||||
| EJS | `JavaScript Template`, `HTML (Angular)` | | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| EJS | `EJS`, `JavaScript Template`, `HTML (Angular)` |`.ejs` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
||||||
| Elm | `Elm` |`.elm` | [`elm-format`](https://github.com/avh4/elm-format) (Default) |
|
| Elm | `Elm` |`.elm` | [`elm-format`](https://github.com/avh4/elm-format) (Default) |
|
||||||
| ERB | `HTML (Ruby - ERB)`, `HTML (Rails)` |`.erb` | [`HTML Beautifier`](https://github.com/threedaymonk/htmlbeautifier), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| ERB | `HTML (Ruby - ERB)`, `HTML (Rails)` |`.erb` | [`HTML Beautifier`](https://github.com/threedaymonk/htmlbeautifier), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
| Erlang | `Erlang` |`.erl` | [`erl_tidy`](http://erlang.org/doc/man/erl_tidy.html) (Default) |
|
| Erlang | `Erlang` |`.erl` | [`erl_tidy`](http://erlang.org/doc/man/erl_tidy.html) (Default) |
|
||||||
| Fortran | `Fortran - Modern` |`.f90`, `.F90` | [`Fortran Beautifier`](https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/fortran-beautifier/emacs-fortran-formating-script.lisp) (Default) |
|
| Fortran | `Fortran - Modern` |`.f90`, `.F90`, `.f95`, `.F95` | [`Fortran Beautifier`](https://www.gnu.org/software/emacs/) (Default) |
|
||||||
| gherkin | `Gherkin` |`.feature` | [`Gherkin formatter`](https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/gherkin.coffee) (Default) |
|
| gherkin | `Gherkin` |`.feature` | [`Gherkin formatter`](https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/gherkin.coffee) (Default) |
|
||||||
|
| GLSL | `C`, `opencl`, `GLSL` |`.vert`, `.frag` | [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) (Default) |
|
||||||
| Go | `Go` |`.go` | [`gofmt`](https://golang.org/cmd/gofmt/) (Default) |
|
| Go | `Go` |`.go` | [`gofmt`](https://golang.org/cmd/gofmt/) (Default) |
|
||||||
| Handlebars | `Handlebars`, `HTML (Handlebars)` |`.hbs`, `.handlebars` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
| Handlebars | `Handlebars`, `HTML (Handlebars)` |`.hbs`, `.handlebars` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
||||||
| Haskell | `Haskell` |`.hs` | [`stylish-haskell`](https://github.com/jaspervdj/stylish-haskell) (Default) |
|
| Haskell | `Haskell` |`.hs` | [`stylish-haskell`](https://github.com/jaspervdj/stylish-haskell) (Default) |
|
||||||
| HTML | `HTML` |`.html` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
| HTML | `HTML` |`.html` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
||||||
| Jade | `Jade`, `Pug` |`.jade`, `.pug` | [`Pug Beautify`](https://github.com/vingorius/pug-beautify) (Default) |
|
| Jade | `Jade`, `Pug` |`.jade`, `.pug` | [`Pug Beautify`](https://github.com/vingorius/pug-beautify) (Default) |
|
||||||
| Java | `Java` |`.java` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
| Java | `Java` |`.java` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
||||||
| JavaScript | `JavaScript` |`.js` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`JSCS Fixer`](https://github.com/jscs-dev/node-jscs/), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
| JavaScript | `JavaScript` |`.js` | [`ESLint Fixer`](https://github.com/eslint/eslint), [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`JSCS Fixer`](https://github.com/jscs-dev/node-jscs/), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
||||||
| JSON | `JSON` |`.json` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
| JSON | `JSON` |`.json` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
||||||
| JSX | `JSX`, `JavaScript (JSX)`, `Babel ES6 JavaScript` |`.jsx`, `.js` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| JSX | `JSX`, `JavaScript (JSX)`, `Babel ES6 JavaScript`, `JavaScript with JSX` |`.jsx`, `.js` | [`JS Beautify`](https://github.com/beautify-web/js-beautify), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
| LaTeX | `LaTeX` |`.tex` | [`Latex Beautify`](https://github.com/cmhughes/latexindent.pl) (Default) |
|
| LaTeX | `LaTeX` |`.tex` | [`Latex Beautify`](https://github.com/cmhughes/latexindent.pl) (Default) |
|
||||||
| LESS | `LESS` |`.less` | [`CSScomb`](https://github.com/csscomb/csscomb.js), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| LESS | `LESS` |`.less` | [`CSScomb`](https://github.com/csscomb/csscomb.js), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
| Lua | `Lua` |`.lua` | [`Lua beautifier`](https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/lua-beautifier/beautifier.pl) (Default) |
|
| Lua | `Lua` |`.lua` | [`Lua beautifier`](https://www.perl.org/) (Default) |
|
||||||
| Markdown | `GitHub Markdown` |`.markdown`, `.md` | [`Remark`](https://github.com/wooorm/remark), [`Tidy Markdown`](https://github.com/slang800/tidy-markdown) (Default) |
|
| Markdown | `GitHub Markdown` |`.markdown`, `.md` | [`Remark`](https://github.com/wooorm/remark), [`Tidy Markdown`](https://github.com/slang800/tidy-markdown) (Default) |
|
||||||
| Marko | `Marko` |`.marko` | [`Marko Beautifier`](https://github.com/marko-js/marko-prettyprint) (Default) |
|
| Marko | `Marko` |`.marko` | [`Marko Beautifier`](https://github.com/marko-js/marko-prettyprint) (Default) |
|
||||||
| Mustache | `HTML (Mustache)` |`.mustache` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default) |
|
| Mustache | `HTML (Mustache)` |`.mustache` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
|
||||||
| Nunjucks | `Nunjucks`, `Nunjucks Templates`, `HTML (Nunjucks Templates)` |`.njk`, `.nunjucks` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| Nunjucks | `Nunjucks`, `Nunjucks Templates`, `HTML (Nunjucks Templates)` |`.njk`, `.nunjucks` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
| Objective-C | `Objective-C`, `Objective-C++` |`.m`, `.mm`, `.h` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
|
| Objective-C | `Objective-C`, `Objective-C++` |`.m`, `.mm`, `.h` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) |
|
||||||
| OCaml | `OCaml` |`.ml` | [`ocp-indent`](https://www.typerex.org/ocp-indent.html) (Default) |
|
| OCaml | `OCaml` |`.ml` | [`ocp-indent`](https://www.typerex.org/ocp-indent.html) (Default) |
|
||||||
| Pawn | `Pawn` | | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
| Pawn | `Pawn` | | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
||||||
| Perl | `Perl`, `Perl 6` |`.pl` | [`Perltidy`](http://perltidy.sourceforge.net/) (Default) |
|
| Perl | `Perl`, `Perl 6` |`.pl` | [`Perltidy`](http://perltidy.sourceforge.net/) (Default) |
|
||||||
| PHP | `PHP` |`.php`, `.module`, `.inc` | [`PHP-CS-Fixer`](http://php.net/manual/en/install.php) (Default), [`PHPCBF`](http://php.net/manual/en/install.php) |
|
| PHP | `PHP` |`.php`, `.module`, `.inc` | [`PHP-CS-Fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) (Default), [`PHPCBF`](http://php.net/manual/en/install.php), [`hh_format`](http://hhvm.com/) |
|
||||||
| Puppet | `Puppet` |`.pp` | [`puppet-lint`](http://puppet-lint.com/) (Default) |
|
| Puppet | `Puppet` |`.pp` | [`puppet-lint`](http://puppet-lint.com/) (Default) |
|
||||||
| Python | `Python` |`.py` | [`autopep8`](https://github.com/hhatto/autopep8) (Default), [`yapf`](https://github.com/google/yapf) |
|
| Python | `Python` |`.py` | [`autopep8`](https://github.com/hhatto/autopep8) (Default), [`yapf`](https://github.com/google/yapf) |
|
||||||
| R | `R` |`.r`, `.R` | [`formatR`](https://github.com/yihui/formatR) (Default) |
|
| R | `R` |`.r`, `.R` | [`formatR`](https://github.com/yihui/formatR) (Default) |
|
||||||
|
@ -118,8 +169,8 @@ See [all supported options in the documentation at `docs/options.md`](https://g
|
||||||
| UX Markup | `UX` |`.ux` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| UX Markup | `UX` |`.ux` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
| Vala | `Vala` |`.vala`, `.vapi` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
| Vala | `Vala` |`.vala`, `.vapi` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) |
|
||||||
| Visualforce | `Visualforce` |`.page` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| Visualforce | `Visualforce` |`.page` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
| Vue | `Vue Component` |`.vue` | `Vue Beautifier` (Default) |
|
| Vue | `Vue Component` |`.vue` | [`Vue Beautifier`](https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee) (Default) |
|
||||||
| XML | `SLD`, `XML`, `XHTML`, `XSD`, `XSL`, `JSP`, `GSP` |`.sld`, `.xml`, `.xhtml`, `.xsd`, `.xsl`, `.jsp`, `.gsp` | [`JS Beautify`](https://github.com/beautify-web/js-beautify), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| XML | `SLD`, `XML`, `XHTML`, `XSD`, `XSL`, `JSP`, `GSP` |`.sld`, `.xml`, `.xhtml`, `.xsd`, `.xsl`, `.jsp`, `.gsp`, `.plist`, `.recipe` | [`JS Beautify`](https://github.com/beautify-web/js-beautify), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
| XTemplate | `XTemplate` |`.xtemplate` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
| XTemplate | `XTemplate` |`.xtemplate` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -174,13 +225,13 @@ Edit your `.jsbeautifyrc` file in any of the following locations:
|
||||||
|
|
||||||
**Note**: *Comments are supported in `.jsbeautifyrc` thanks to [strip-json-comments](https://github.com/sindresorhus/strip-json-comments).*
|
**Note**: *Comments are supported in `.jsbeautifyrc` thanks to [strip-json-comments](https://github.com/sindresorhus/strip-json-comments).*
|
||||||
|
|
||||||
See examples of both ways inside [`examples/`](https://github.com/donaldpipowitch/atom-beautify/tree/master/examples)
|
See examples of both ways inside [`examples/`](examples)
|
||||||
|
|
||||||
See [all supported options in the documentation at `docs/options.md`](https://github.com/Glavin001/atom-beautify/blob/master/docs/options.md).
|
See [all supported options in the documentation at `docs/options.md`](docs/options.md).
|
||||||
|
|
||||||
### Simple
|
### Simple
|
||||||
|
|
||||||
See [examples/simple-jsbeautifyrc/.jsbeautifyrc](https://github.com/donaldpipowitch/atom-beautify/blob/master/examples/simple-jsbeautifyrc/.jsbeautifyrc).
|
See [examples/simple-jsbeautifyrc/.jsbeautifyrc](examples/simple-jsbeautifyrc/.jsbeautifyrc).
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -198,7 +249,7 @@ See [examples/simple-jsbeautifyrc/.jsbeautifyrc](https://github.com/donaldpipowi
|
||||||
|
|
||||||
### Nested (Recommended)
|
### Nested (Recommended)
|
||||||
|
|
||||||
See [examples/nested-jsbeautifyrc/.jsbeautifyrc](https://github.com/donaldpipowitch/atom-beautify/blob/master/examples/nested-jsbeautifyrc/.jsbeautifyrc).
|
See [examples/nested-jsbeautifyrc/.jsbeautifyrc](examples/nested-jsbeautifyrc/.jsbeautifyrc).
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -236,16 +287,16 @@ See [examples/nested-jsbeautifyrc/.jsbeautifyrc](https://github.com/donaldpipowi
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
See [`docs/troubleshooting.md`](https://github.com/Glavin001/atom-beautify/blob/master/docs/troubleshooting.md).
|
See [`docs/troubleshooting.md`](docs/troubleshooting.md).
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
[See all contributors on GitHub](https://github.com/donaldpipowitch/atom-beautify/graphs/contributors).
|
[See all contributors on GitHub](../../graphs/contributors).
|
||||||
|
|
||||||
Please update the [CHANGELOG.md](https://github.com/donaldpipowitch/atom-beautify/blob/master/CHANGELOG.md),
|
Please update the [CHANGELOG.md](CHANGELOG.md),
|
||||||
add yourself as a contributor to the [package.json](https://github.com/donaldpipowitch/atom-beautify/blob/master/package.json),
|
add yourself as a contributor to the [package.json](package.json),
|
||||||
and submit a [Pull Request on GitHub](https://help.github.com/articles/using-pull-requests/).
|
and submit a [Pull Request on GitHub](https://help.github.com/articles/using-pull-requests/).
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[MIT](https://github.com/donaldpipowitch/atom-beautify/blob/master/LICENSE.md) © [Glavin Wiechert](https://github.com/Glavin001)
|
[MIT](LICENSE.md) © [Glavin Wiechert](https://github.com/Glavin001)
|
||||||
|
|
|
@ -15,6 +15,7 @@ environment:
|
||||||
- PYTHON: "C:\\Python27"
|
- PYTHON: "C:\\Python27"
|
||||||
PYTHON_VERSION: "2.7.8"
|
PYTHON_VERSION: "2.7.8"
|
||||||
PYTHON_ARCH: "32"
|
PYTHON_ARCH: "32"
|
||||||
|
RUBY_VERSION: 23
|
||||||
|
|
||||||
# - PYTHON: "C:\\Python27-x64"
|
# - PYTHON: "C:\\Python27-x64"
|
||||||
# PYTHON_VERSION: "2.7.8"
|
# PYTHON_VERSION: "2.7.8"
|
||||||
|
@ -82,8 +83,7 @@ install:
|
||||||
- "%CMD_IN_ENV% pip install --upgrade sqlparse"
|
- "%CMD_IN_ENV% pip install --upgrade sqlparse"
|
||||||
|
|
||||||
# Ruby & Gem
|
# Ruby & Gem
|
||||||
- cinst ruby -y
|
- SET PATH=C:\Ruby%RUBY_VERSION%\bin;C:\Ruby23-x64\DevKit\mingw\bin;%PATH%
|
||||||
- "SET PATH=C:\\tools\\ruby23\\bin;%PATH%"
|
|
||||||
# Rubocop
|
# Rubocop
|
||||||
- gem install rubocop
|
- gem install rubocop
|
||||||
- where rubocop
|
- where rubocop
|
||||||
|
@ -104,9 +104,10 @@ install:
|
||||||
# FIXME: Enable allowEmptyChecksums, until someone fixes the checksum issue of php
|
# FIXME: Enable allowEmptyChecksums, until someone fixes the checksum issue of php
|
||||||
- choco feature enable -n allowEmptyChecksums
|
- choco feature enable -n allowEmptyChecksums
|
||||||
# PHP
|
# PHP
|
||||||
|
- ps: Set-Service wuauserv -StartupType Manual
|
||||||
- cinst php -y
|
- cinst php -y
|
||||||
- ps: "ls \"C:\\tools\\php\""
|
- ps: "ls \"C:\\tools\\php71\""
|
||||||
- "SET PATH=C:\\tools\\php;%PATH%"
|
- "SET PATH=C:\\tools\\php71;%PATH%"
|
||||||
- where php
|
- where php
|
||||||
# PHP-CS-Fixer
|
# PHP-CS-Fixer
|
||||||
- cinst curl -y # Use cURL to download file from URL
|
- cinst curl -y # Use cURL to download file from URL
|
||||||
|
|
|
@ -50,6 +50,11 @@
|
||||||
Beautifier
|
Beautifier
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/BashBeautify.html'>
|
||||||
|
BashBeautify
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Beautifiers.html'>
|
<a href='class/Beautifiers.html'>
|
||||||
Beautifiers
|
Beautifiers
|
||||||
|
@ -65,6 +70,11 @@
|
||||||
ClangFormat
|
ClangFormat
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Cljfmt.html'>
|
||||||
|
Cljfmt
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/CoffeeFmt.html'>
|
<a href='class/CoffeeFmt.html'>
|
||||||
CoffeeFmt
|
CoffeeFmt
|
||||||
|
@ -175,6 +185,11 @@
|
||||||
Lua
|
Lua
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Languages.html'>
|
||||||
|
Languages
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/LoadingView.html'>
|
<a href='class/LoadingView.html'>
|
||||||
LoadingView
|
LoadingView
|
||||||
|
@ -380,6 +395,14 @@
|
||||||
(src/beautifiers)
|
(src/beautifiers)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/beautifiers/beautysh.coffee.html'>
|
||||||
|
beautysh.coffee
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(src/beautifiers)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='file/src/beautify.coffee.html'>
|
<a href='file/src/beautify.coffee.html'>
|
||||||
beautify.coffee
|
beautify.coffee
|
||||||
|
@ -388,6 +411,14 @@
|
||||||
(src)
|
(src)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/languages/bash.coffee.html'>
|
||||||
|
bash.coffee
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(src/languages)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -465,6 +496,14 @@
|
||||||
(src/languages)
|
(src/languages)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/languages/clojure.coffee.html'>
|
||||||
|
clojure.coffee
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(src/languages)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='file/src/languages/coffeescript.coffee.html'>
|
<a href='file/src/languages/coffeescript.coffee.html'>
|
||||||
coffeescript.coffee
|
coffeescript.coffee
|
||||||
|
@ -679,6 +718,14 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li class='letter'>i</li>
|
<li class='letter'>i</li>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/beautifiers/cljfmt/index.coffee.html'>
|
||||||
|
index.coffee
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(src/beautifiers/cljfmt)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='file/src/beautifiers/formatR/index.coffee.html'>
|
<a href='file/src/beautifiers/formatR/index.coffee.html'>
|
||||||
index.coffee
|
index.coffee
|
||||||
|
@ -1206,6 +1253,19 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li class='letter'>u</li>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/languages/ux_markup.coffee.html'>
|
||||||
|
ux_markup.coffee
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(src/languages)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
<li class='letter'>v</li>
|
<li class='letter'>v</li>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -0,0 +1,206 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../javascript/application.js'></script>
|
||||||
|
<script src='../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>BashBeautify</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
Class:
|
||||||
|
BashBeautify
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/beautifiers/beautysh.coffee</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Inherits:</td>
|
||||||
|
<td>
|
||||||
|
<a href='../class/Beautifier.html'>Beautifier</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<h2>Variables Summary</h2>
|
||||||
|
<dl class='constants'>
|
||||||
|
<dt id='name-variable'>
|
||||||
|
name
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>"beautysh"</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt id='link-variable'>
|
||||||
|
link
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>"https://github.com/bemeurer/beautysh"</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt id='options-variable'>
|
||||||
|
options
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>{
|
||||||
|
Bash: {
|
||||||
|
indent_size: true
|
||||||
|
}
|
||||||
|
}</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h3 class='inherited'>
|
||||||
|
Variable inherited from
|
||||||
|
<a href='../class/Beautifier.html'>Beautifier</a>
|
||||||
|
</h3>
|
||||||
|
<p class='inherited'>
|
||||||
|
<a href='../class/Beautifier.html#Promise-variable'>Promise</a>
|
||||||
|
<a href='../class/Beautifier.html#name-variable'>name</a>
|
||||||
|
<a href='../class/Beautifier.html#options-variable'>options</a>
|
||||||
|
<a href='../class/Beautifier.html#languages-variable'>languages</a>
|
||||||
|
<a href='../class/Beautifier.html#beautify-variable'>beautify</a>
|
||||||
|
<a href='../class/Beautifier.html#_envCache-variable'>_envCache</a>
|
||||||
|
<a href='../class/Beautifier.html#_envCacheDate-variable'>_envCacheDate</a>
|
||||||
|
<a href='../class/Beautifier.html#_envCacheExpiry-variable'>_envCacheExpiry</a>
|
||||||
|
<a href='../class/Beautifier.html#logger-variable'>logger</a>
|
||||||
|
</p>
|
||||||
|
<h2>Instance Method Summary</h2>
|
||||||
|
<ul class='summary'>
|
||||||
|
<li>
|
||||||
|
<span class='signature'>
|
||||||
|
<a href='#beautify-dynamic'>
|
||||||
|
#
|
||||||
|
(void)
|
||||||
|
<b>beautify</b><span>(text, language, options)</span>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
<span class='desc'>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<small>Inherited Method Summary</small>
|
||||||
|
<h3 class='inherited'>
|
||||||
|
Methods inherited from
|
||||||
|
<a href='../class/Beautifier.html'>Beautifier</a>
|
||||||
|
</h3>
|
||||||
|
<p class='inherited'>
|
||||||
|
<a href='../class/Beautifier.html#deprecate-dynamic'>#deprecate</a>
|
||||||
|
<a href='../class/Beautifier.html#tempFile-dynamic'>#tempFile</a>
|
||||||
|
<a href='../class/Beautifier.html#readFile-dynamic'>#readFile</a>
|
||||||
|
<a href='../class/Beautifier.html#findFile-dynamic'>#findFile</a>
|
||||||
|
<a href='../class/Beautifier.html#getShellEnvironment-dynamic'>#getShellEnvironment</a>
|
||||||
|
<a href='../class/Beautifier.html#which-dynamic'>#which</a>
|
||||||
|
<a href='../class/Beautifier.html#commandNotFoundError-dynamic'>#commandNotFoundError</a>
|
||||||
|
<a href='../class/Beautifier.html#run-dynamic'>#run</a>
|
||||||
|
<a href='../class/Beautifier.html#spawn-dynamic'>#spawn</a>
|
||||||
|
<a href='../class/Beautifier.html#setupLogger-dynamic'>#setupLogger</a>
|
||||||
|
</p>
|
||||||
|
</h2>
|
||||||
|
<h2>Instance Method Details</h2>
|
||||||
|
<div class='methods'>
|
||||||
|
<div class='method_details'>
|
||||||
|
<p class='signature' id='beautify-dynamic'>
|
||||||
|
#
|
||||||
|
(void)
|
||||||
|
<b>beautify</b><span>(text, language, options)</span>
|
||||||
|
<br>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -36,7 +36,9 @@
|
||||||
<h2>Direct Known Subclasses</h2>
|
<h2>Direct Known Subclasses</h2>
|
||||||
<p class='children'>
|
<p class='children'>
|
||||||
<a href='../class/Autopep8.html'>Autopep8</a>
|
<a href='../class/Autopep8.html'>Autopep8</a>
|
||||||
|
<a href='../class/BashBeautify.html'>BashBeautify</a>
|
||||||
<a href='../class/ClangFormat.html'>ClangFormat</a>
|
<a href='../class/ClangFormat.html'>ClangFormat</a>
|
||||||
|
<a href='../class/Cljfmt.html'>Cljfmt</a>
|
||||||
<a href='../class/CoffeeFmt.html'>CoffeeFmt</a>
|
<a href='../class/CoffeeFmt.html'>CoffeeFmt</a>
|
||||||
<a href='../class/CoffeeFormatter.html'>CoffeeFormatter</a>
|
<a href='../class/CoffeeFormatter.html'>CoffeeFormatter</a>
|
||||||
<a href='../class/Crystal.html'>Crystal</a>
|
<a href='../class/Crystal.html'>Crystal</a>
|
||||||
|
|
|
@ -39,12 +39,6 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class='docstring'>
|
|
||||||
<p>Register all supported beautifiers</p>
|
|
||||||
</div>
|
|
||||||
<div class='tags'>
|
|
||||||
</div>
|
|
||||||
<h2>Variables Summary</h2>
|
<h2>Variables Summary</h2>
|
||||||
<dl class='constants'>
|
<dl class='constants'>
|
||||||
<dt id='beautifierNames-variable'>
|
<dt id='beautifierNames-variable'>
|
||||||
|
@ -52,7 +46,7 @@
|
||||||
=
|
=
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<pre><code class='coffeescript'>['uncrustify', 'autopep8', 'coffee-formatter', 'coffee-fmt', 'clang-format', 'crystal', 'dfmt', 'elm-format', 'htmlbeautifier', 'csscomb', 'gherkin', 'gofmt', 'latex-beautify', 'fortran-beautifier', 'js-beautify', 'jscs', 'lua-beautifier', 'ocp-indent', 'perltidy', 'php-cs-fixer', 'phpcbf', 'prettydiff', 'pug-beautify', 'puppet-fix', 'remark', 'rubocop', 'ruby-beautify', 'rustfmt', 'sass-convert', 'sqlformat', 'stylish-haskell', 'tidy-markdown', 'typescript-formatter', 'vue-beautifier', 'yapf', 'erl_tidy', 'marko-beautifier', 'formatR']</code></pre>
|
<pre><code class='coffeescript'>['uncrustify', 'autopep8', 'coffee-formatter', 'coffee-fmt', 'cljfmt', 'clang-format', 'crystal', 'dfmt', 'elm-format', 'htmlbeautifier', 'csscomb', 'gherkin', 'gofmt', 'latex-beautify', 'fortran-beautifier', 'js-beautify', 'jscs', 'lua-beautifier', 'ocp-indent', 'perltidy', 'php-cs-fixer', 'phpcbf', 'prettydiff', 'pug-beautify', 'puppet-fix', 'remark', 'rubocop', 'ruby-beautify', 'rustfmt', 'sass-convert', 'sqlformat', 'stylish-haskell', 'tidy-markdown', 'typescript-formatter', 'vue-beautifier', 'yapf', 'erl_tidy', 'marko-beautifier', 'formatR', 'beautysh']</code></pre>
|
||||||
<div class='docstring'>
|
<div class='docstring'>
|
||||||
<p>List of beautifier names</p><p>To register a beautifier add its name here</p>
|
<p>List of beautifier names</p><p>To register a beautifier add its name here</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1,204 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../javascript/application.js'></script>
|
||||||
|
<script src='../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>Cljfmt</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
Class:
|
||||||
|
Cljfmt
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/beautifiers/cljfmt/index.coffee</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Inherits:</td>
|
||||||
|
<td>
|
||||||
|
<a href='../class/Beautifier.html'>Beautifier</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<h2>Variables Summary</h2>
|
||||||
|
<dl class='constants'>
|
||||||
|
<dt id='name-variable'>
|
||||||
|
name
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>"cljfmt"</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt id='link-variable'>
|
||||||
|
link
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>"https://github.com/snoe/node-cljfmt"</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt id='options-variable'>
|
||||||
|
options
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>{
|
||||||
|
Clojure: false
|
||||||
|
}</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h3 class='inherited'>
|
||||||
|
Variable inherited from
|
||||||
|
<a href='../class/Beautifier.html'>Beautifier</a>
|
||||||
|
</h3>
|
||||||
|
<p class='inherited'>
|
||||||
|
<a href='../class/Beautifier.html#Promise-variable'>Promise</a>
|
||||||
|
<a href='../class/Beautifier.html#name-variable'>name</a>
|
||||||
|
<a href='../class/Beautifier.html#options-variable'>options</a>
|
||||||
|
<a href='../class/Beautifier.html#languages-variable'>languages</a>
|
||||||
|
<a href='../class/Beautifier.html#beautify-variable'>beautify</a>
|
||||||
|
<a href='../class/Beautifier.html#_envCache-variable'>_envCache</a>
|
||||||
|
<a href='../class/Beautifier.html#_envCacheDate-variable'>_envCacheDate</a>
|
||||||
|
<a href='../class/Beautifier.html#_envCacheExpiry-variable'>_envCacheExpiry</a>
|
||||||
|
<a href='../class/Beautifier.html#logger-variable'>logger</a>
|
||||||
|
</p>
|
||||||
|
<h2>Instance Method Summary</h2>
|
||||||
|
<ul class='summary'>
|
||||||
|
<li>
|
||||||
|
<span class='signature'>
|
||||||
|
<a href='#beautify-dynamic'>
|
||||||
|
#
|
||||||
|
(void)
|
||||||
|
<b>beautify</b><span>(text, language, options)</span>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
<span class='desc'>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<small>Inherited Method Summary</small>
|
||||||
|
<h3 class='inherited'>
|
||||||
|
Methods inherited from
|
||||||
|
<a href='../class/Beautifier.html'>Beautifier</a>
|
||||||
|
</h3>
|
||||||
|
<p class='inherited'>
|
||||||
|
<a href='../class/Beautifier.html#deprecate-dynamic'>#deprecate</a>
|
||||||
|
<a href='../class/Beautifier.html#tempFile-dynamic'>#tempFile</a>
|
||||||
|
<a href='../class/Beautifier.html#readFile-dynamic'>#readFile</a>
|
||||||
|
<a href='../class/Beautifier.html#findFile-dynamic'>#findFile</a>
|
||||||
|
<a href='../class/Beautifier.html#getShellEnvironment-dynamic'>#getShellEnvironment</a>
|
||||||
|
<a href='../class/Beautifier.html#which-dynamic'>#which</a>
|
||||||
|
<a href='../class/Beautifier.html#commandNotFoundError-dynamic'>#commandNotFoundError</a>
|
||||||
|
<a href='../class/Beautifier.html#run-dynamic'>#run</a>
|
||||||
|
<a href='../class/Beautifier.html#spawn-dynamic'>#spawn</a>
|
||||||
|
<a href='../class/Beautifier.html#setupLogger-dynamic'>#setupLogger</a>
|
||||||
|
</p>
|
||||||
|
</h2>
|
||||||
|
<h2>Instance Method Details</h2>
|
||||||
|
<div class='methods'>
|
||||||
|
<div class='method_details'>
|
||||||
|
<p class='signature' id='beautify-dynamic'>
|
||||||
|
#
|
||||||
|
(void)
|
||||||
|
<b>beautify</b><span>(text, language, options)</span>
|
||||||
|
<br>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,196 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../javascript/application.js'></script>
|
||||||
|
<script src='../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>Languages</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
Class:
|
||||||
|
Languages
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/languages/index.coffee</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<h2>Variables Summary</h2>
|
||||||
|
<dl class='constants'>
|
||||||
|
<dt id='languageNames-variable'>
|
||||||
|
languageNames
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>["apex", "arduino", "bash", "c-sharp", "c", "clojure", "coffeescript", "coldfusion", "cpp", "crystal", "css", "csv", "d", "ejs", "elm", "erb", "erlang", "gherkin", "go", "fortran", "handlebars", "haskell", "html", "jade", "java", "javascript", "json", "jsx", "latex", "less", "lua", "markdown", 'marko', "mustache", "nunjucks", "objective-c", "ocaml", "pawn", "perl", "php", "puppet", "python", "r", "riotjs", "ruby", "rust", "sass", "scss", "spacebars", "sql", "svg", "swig", "tss", "twig", "typescript", "ux_markup", "vala", "vue", "visualforce", "xml", "xtemplate"]</code></pre>
|
||||||
|
<div class='docstring'>
|
||||||
|
<p>Supported unique configuration keys
|
||||||
|
Used for detecting nested configurations in .jsbeautifyrc</p>
|
||||||
|
</div>
|
||||||
|
<div class='tags'>
|
||||||
|
</div>
|
||||||
|
</dd>
|
||||||
|
<dt id='languages-variable'>
|
||||||
|
languages
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>null</code></pre>
|
||||||
|
<div class='docstring'>
|
||||||
|
<p>Languages</p>
|
||||||
|
</div>
|
||||||
|
<div class='tags'>
|
||||||
|
</div>
|
||||||
|
</dd>
|
||||||
|
<dt id='namespaces-variable'>
|
||||||
|
namespaces
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>null</code></pre>
|
||||||
|
<div class='docstring'>
|
||||||
|
<p>Namespaces</p>
|
||||||
|
</div>
|
||||||
|
<div class='tags'>
|
||||||
|
</div>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<h2>Instance Method Summary</h2>
|
||||||
|
<ul class='summary'>
|
||||||
|
<li>
|
||||||
|
<span class='signature'>
|
||||||
|
<a href='#getLanguages-dynamic'>
|
||||||
|
#
|
||||||
|
(void)
|
||||||
|
<b>getLanguages</b><span>({name, namespace, grammar, extension})</span>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
<span class='desc'>
|
||||||
|
Get language for grammar and extension
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>Constructor Details</h2>
|
||||||
|
<div class='methods'>
|
||||||
|
<div class='method_details'>
|
||||||
|
<p class='signature' id='constructor-dynamic'>
|
||||||
|
#
|
||||||
|
(void)
|
||||||
|
<b>constructor</b><span>()</span>
|
||||||
|
<br>
|
||||||
|
</p>
|
||||||
|
<div class='docstring'>
|
||||||
|
<p>Constructor</p>
|
||||||
|
</div>
|
||||||
|
<div class='tags'>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h2>Instance Method Details</h2>
|
||||||
|
<div class='methods'>
|
||||||
|
<div class='method_details'>
|
||||||
|
<p class='signature' id='getLanguages-dynamic'>
|
||||||
|
#
|
||||||
|
(void)
|
||||||
|
<b>getLanguages</b><span>({name, namespace, grammar, extension})</span>
|
||||||
|
<br>
|
||||||
|
</p>
|
||||||
|
<div class='docstring'>
|
||||||
|
<p>Get language for grammar and extension</p>
|
||||||
|
</div>
|
||||||
|
<div class='tags'>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -132,7 +132,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
ternaryline: "preserve_ternary_lines"
|
ternaryline: "preserve_ternary_lines",
|
||||||
|
bracepadding: "space_in_paren"
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -157,6 +158,7 @@
|
||||||
Twig: true,
|
Twig: true,
|
||||||
LESS: true,
|
LESS: true,
|
||||||
Swig: true,
|
Swig: true,
|
||||||
|
"UX Markup": true,
|
||||||
Visualforce: true,
|
Visualforce: true,
|
||||||
"Riot.js": true,
|
"Riot.js": true,
|
||||||
XTemplate: true
|
XTemplate: true
|
||||||
|
|
|
@ -49,6 +49,18 @@
|
||||||
|
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/BashBeautify.html' target='main'>
|
||||||
|
BashBeautify
|
||||||
|
</a>
|
||||||
|
<small class='parent'>
|
||||||
|
<
|
||||||
|
Beautifier
|
||||||
|
</small>
|
||||||
|
<small class='namespace'>
|
||||||
|
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/ClangFormat.html' target='main'>
|
<a href='class/ClangFormat.html' target='main'>
|
||||||
ClangFormat
|
ClangFormat
|
||||||
|
@ -61,6 +73,18 @@
|
||||||
|
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Cljfmt.html' target='main'>
|
||||||
|
Cljfmt
|
||||||
|
</a>
|
||||||
|
<small class='parent'>
|
||||||
|
<
|
||||||
|
Beautifier
|
||||||
|
</small>
|
||||||
|
<small class='namespace'>
|
||||||
|
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/CoffeeFmt.html' target='main'>
|
<a href='class/CoffeeFmt.html' target='main'>
|
||||||
CoffeeFmt
|
CoffeeFmt
|
||||||
|
@ -493,6 +517,14 @@
|
||||||
|
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Languages.html' target='main'>
|
||||||
|
Languages
|
||||||
|
</a>
|
||||||
|
<small class='namespace'>
|
||||||
|
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/LoadingView.html' target='main'>
|
<a href='class/LoadingView.html' target='main'>
|
||||||
LoadingView
|
LoadingView
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
<li>Closes <a href="https://github.com/Glavin001/atom-beautify/issues/786">#786</a> YAPF configuration files are ignored.</li>
|
<li>Closes <a href="https://github.com/Glavin001/atom-beautify/issues/786">#786</a> YAPF configuration files are ignored.</li>
|
||||||
<li>Fix phpcbf hanging issue by closing stdin. See <a href="https://github.com/Glavin001/atom-beautify/issues/893">#893</a></li>
|
<li>Fix phpcbf hanging issue by closing stdin. See <a href="https://github.com/Glavin001/atom-beautify/issues/893">#893</a></li>
|
||||||
<li>Add warning notification when parsing <code>.jsbeautifyrc</code> as JSON or YAML fails. See <a href="https://github.com/Glavin001/atom-beautify/issues/1106">#1106</a></li>
|
<li>Add warning notification when parsing <code>.jsbeautifyrc</code> as JSON or YAML fails. See <a href="https://github.com/Glavin001/atom-beautify/issues/1106">#1106</a></li>
|
||||||
|
<li>Add support for PrettyDiff's <em>bracepadding</em> option in JavaScript. See <a href="https://github.com/Glavin001/atom-beautify/issues/1157">#1157</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<h1 id="v0-29-0">v0.29.0</h1>
|
<h1 id="v0-29-0">v0.29.0</h1>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -118,6 +118,12 @@ Thank you.</p><h2 id="language-support">Language Support</h2><p>See <a href="htt
|
||||||
<td><a href="https://github.com/uncrustify/uncrustify"><code>Uncrustify</code></a> (Default)</td>
|
<td><a href="https://github.com/uncrustify/uncrustify"><code>Uncrustify</code></a> (Default)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>Bash</td>
|
||||||
|
<td><code>Shell Script</code></td>
|
||||||
|
<td><code>.bash</code>, <code>.sh</code></td>
|
||||||
|
<td><a href="https://github.com/bemeurer/beautysh"><code>beautysh</code></a> (Default)</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>C</td>
|
<td>C</td>
|
||||||
<td><code>C</code>, <code>opencl</code></td>
|
<td><code>C</code>, <code>opencl</code></td>
|
||||||
<td><code>.h</code>, <code>.c</code>, <code>.cl</code></td>
|
<td><code>.h</code>, <code>.c</code>, <code>.cl</code></td>
|
||||||
|
@ -130,6 +136,12 @@ Thank you.</p><h2 id="language-support">Language Support</h2><p>See <a href="htt
|
||||||
<td><a href="https://github.com/prettydiff/prettydiff"><code>Pretty Diff</code></a> (Default)</td>
|
<td><a href="https://github.com/prettydiff/prettydiff"><code>Pretty Diff</code></a> (Default)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>Clojure</td>
|
||||||
|
<td><code>Clojure</code></td>
|
||||||
|
<td><code>.clj</code>, <code>.cljs</code>, <code>.edn</code></td>
|
||||||
|
<td><a href="https://github.com/snoe/node-cljfmt"><code>cljfmt</code></a> (Default)</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>CoffeeScript</td>
|
<td>CoffeeScript</td>
|
||||||
<td><code>CoffeeScript</code></td>
|
<td><code>CoffeeScript</code></td>
|
||||||
<td><code>.coffee</code></td>
|
<td><code>.coffee</code></td>
|
||||||
|
@ -257,7 +269,7 @@ Thank you.</p><h2 id="language-support">Language Support</h2><p>See <a href="htt
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>JSX</td>
|
<td>JSX</td>
|
||||||
<td><code>JSX</code>, <code>JavaScript (JSX)</code></td>
|
<td><code>JSX</code>, <code>JavaScript (JSX)</code>, <code>Babel ES6 JavaScript</code></td>
|
||||||
<td><code>.jsx</code>, <code>.js</code></td>
|
<td><code>.jsx</code>, <code>.js</code></td>
|
||||||
<td><a href="https://github.com/prettydiff/prettydiff"><code>Pretty Diff</code></a> (Default)</td>
|
<td><a href="https://github.com/prettydiff/prettydiff"><code>Pretty Diff</code></a> (Default)</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -424,6 +436,12 @@ Thank you.</p><h2 id="language-support">Language Support</h2><p>See <a href="htt
|
||||||
<td><a href="https://github.com/vvakame/typescript-formatter"><code>TypeScript Formatter</code></a> (Default)</td>
|
<td><a href="https://github.com/vvakame/typescript-formatter"><code>TypeScript Formatter</code></a> (Default)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>UX Markup</td>
|
||||||
|
<td><code>UX</code></td>
|
||||||
|
<td><code>.ux</code></td>
|
||||||
|
<td><a href="https://github.com/prettydiff/prettydiff"><code>Pretty Diff</code></a> (Default)</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>Vala</td>
|
<td>Vala</td>
|
||||||
<td><code>Vala</code></td>
|
<td><code>Vala</code></td>
|
||||||
<td><code>.vala</code>, <code>.vapi</code></td>
|
<td><code>.vala</code>, <code>.vapi</code></td>
|
||||||
|
|
|
@ -0,0 +1,123 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../../../javascript/application.js'></script>
|
||||||
|
<script src='../../../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../../../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../../../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>src</span>
|
||||||
|
»
|
||||||
|
<span class='title'>beautifiers</span>
|
||||||
|
»
|
||||||
|
<span class='title'>bash-beautify.coffee</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
File:
|
||||||
|
bash-beautify.coffee
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/beautifiers</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Classes:
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a href='../../../class/BashBeautify.html'>
|
||||||
|
BashBeautify
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,123 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../../../javascript/application.js'></script>
|
||||||
|
<script src='../../../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../../../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../../../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>src</span>
|
||||||
|
»
|
||||||
|
<span class='title'>beautifiers</span>
|
||||||
|
»
|
||||||
|
<span class='title'>beautifysh.coffee</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
File:
|
||||||
|
beautifysh.coffee
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/beautifiers</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Classes:
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a href='../../../class/BashBeautify.html'>
|
||||||
|
BashBeautify
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,123 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../../../javascript/application.js'></script>
|
||||||
|
<script src='../../../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../../../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../../../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>src</span>
|
||||||
|
»
|
||||||
|
<span class='title'>beautifiers</span>
|
||||||
|
»
|
||||||
|
<span class='title'>beautysh.coffee</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
File:
|
||||||
|
beautysh.coffee
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/beautifiers</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Classes:
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a href='../../../class/BashBeautify.html'>
|
||||||
|
BashBeautify
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,125 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../../../../javascript/application.js'></script>
|
||||||
|
<script src='../../../../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../../../../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../../../../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../../../../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../../../../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>src</span>
|
||||||
|
»
|
||||||
|
<span class='title'>beautifiers</span>
|
||||||
|
»
|
||||||
|
<span class='title'>cljfmt</span>
|
||||||
|
»
|
||||||
|
<span class='title'>index.coffee</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
File:
|
||||||
|
index.coffee
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/beautifiers/cljfmt</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Classes:
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a href='../../../../class/Cljfmt.html'>
|
||||||
|
Cljfmt
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,162 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../../../javascript/application.js'></script>
|
||||||
|
<script src='../../../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../../../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../../../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>src</span>
|
||||||
|
»
|
||||||
|
<span class='title'>languages</span>
|
||||||
|
»
|
||||||
|
<span class='title'>bash.coffee</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
File:
|
||||||
|
bash.coffee
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/languages</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<h2>Variables Summary</h2>
|
||||||
|
<dl class='constants'>
|
||||||
|
<dt id='scope-variable'>
|
||||||
|
scope
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>['source.sh', 'source.bash']</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt id='defaultIndentSize-variable'>
|
||||||
|
defaultIndentSize
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>(softTabs ? tabLength : 1)</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt id='module.exports-variable'>
|
||||||
|
module.exports
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>{
|
||||||
|
name: "Bash",
|
||||||
|
namespace: "bash",
|
||||||
|
|
||||||
|
/*
|
||||||
|
Supported Grammars
|
||||||
|
*/
|
||||||
|
grammars: ["Shell Script"],
|
||||||
|
defaultBeautifier: "beautysh",
|
||||||
|
|
||||||
|
/*
|
||||||
|
Supported extensions
|
||||||
|
*/
|
||||||
|
extensions: ["bash", "sh"],
|
||||||
|
options: {
|
||||||
|
indent_size: {
|
||||||
|
type: 'integer',
|
||||||
|
"default": defaultIndentSize,
|
||||||
|
minimum: 0,
|
||||||
|
description: "Indentation size/length"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,138 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../../../javascript/application.js'></script>
|
||||||
|
<script src='../../../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../../../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../../../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>src</span>
|
||||||
|
»
|
||||||
|
<span class='title'>languages</span>
|
||||||
|
»
|
||||||
|
<span class='title'>clojure.coffee</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
File:
|
||||||
|
clojure.coffee
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/languages</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<h2>Variables Summary</h2>
|
||||||
|
<dl class='constants'>
|
||||||
|
<dt id='module.exports-variable'>
|
||||||
|
module.exports
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>{
|
||||||
|
name: "Clojure",
|
||||||
|
namespace: "clj",
|
||||||
|
|
||||||
|
/*
|
||||||
|
Supported Grammars
|
||||||
|
*/
|
||||||
|
grammars: ["Clojure"],
|
||||||
|
|
||||||
|
/*
|
||||||
|
Supported extensions
|
||||||
|
*/
|
||||||
|
extensions: ['clj', 'cljs', 'edn'],
|
||||||
|
defaultBeautifier: "cljfmt"
|
||||||
|
}</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -36,6 +36,16 @@
|
||||||
<td>Defined in:</td>
|
<td>Defined in:</td>
|
||||||
<td>src/languages</td>
|
<td>src/languages</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Classes:
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a href='../../../class/Languages.html'>
|
||||||
|
Languages
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<h2>Variables Summary</h2>
|
<h2>Variables Summary</h2>
|
||||||
<dl class='constants'>
|
<dl class='constants'>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
/*
|
/*
|
||||||
Supported Grammars
|
Supported Grammars
|
||||||
*/
|
*/
|
||||||
grammars: ["JSX", "JavaScript (JSX)"],
|
grammars: ["JSX", "JavaScript (JSX)", "Babel ES6 JavaScript"],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Supported extensions
|
Supported extensions
|
||||||
|
|
|
@ -0,0 +1,139 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='UTF-8'>
|
||||||
|
<title>Atom-Beautify Documentation</title>
|
||||||
|
<script src='../../../javascript/application.js'></script>
|
||||||
|
<script src='../../../javascript/search.js'></script>
|
||||||
|
<link rel='stylesheet' href='../../../stylesheets/application.css' type='text/css'>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='base' data-path='../../../'></div>
|
||||||
|
<div id='header'>
|
||||||
|
<div id='menu'>
|
||||||
|
<a href='../../../extra/README.md.html' title='Atom-Beautify'>
|
||||||
|
Atom-Beautify
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href='../../../alphabetical_index.html' title='Index'>
|
||||||
|
Index
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<span class='title'>src</span>
|
||||||
|
»
|
||||||
|
<span class='title'>languages</span>
|
||||||
|
»
|
||||||
|
<span class='title'>ux_markup.coffee</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id='content'>
|
||||||
|
<h1>
|
||||||
|
File:
|
||||||
|
ux_markup.coffee
|
||||||
|
</h1>
|
||||||
|
<table class='box'>
|
||||||
|
<tr>
|
||||||
|
<td>Defined in:</td>
|
||||||
|
<td>src/languages</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<h2>Variables Summary</h2>
|
||||||
|
<dl class='constants'>
|
||||||
|
<dt id='module.exports-variable'>
|
||||||
|
module.exports
|
||||||
|
=
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<pre><code class='coffeescript'>{
|
||||||
|
name: "UX Markup",
|
||||||
|
namespace: "ux",
|
||||||
|
fallback: ['html'],
|
||||||
|
|
||||||
|
/*
|
||||||
|
Supported Grammars
|
||||||
|
*/
|
||||||
|
grammars: ["UX"],
|
||||||
|
|
||||||
|
/*
|
||||||
|
Supported extensions
|
||||||
|
*/
|
||||||
|
extensions: ["ux"],
|
||||||
|
defaultBeautifier: "Pretty Diff"
|
||||||
|
}</code></pre>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
<div id='footer'>
|
||||||
|
By
|
||||||
|
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
|
||||||
|
Codo
|
||||||
|
</a>
|
||||||
|
2.1.2
|
||||||
|
✲
|
||||||
|
Press H to see the keyboard shortcuts
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
|
||||||
|
✲
|
||||||
|
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
|
||||||
|
</div>
|
||||||
|
<iframe id='search_frame'></iframe>
|
||||||
|
<div id='fuzzySearch'>
|
||||||
|
<input type='text'>
|
||||||
|
<ol></ol>
|
||||||
|
</div>
|
||||||
|
<div id='help'>
|
||||||
|
<p>
|
||||||
|
Quickly fuzzy find classes, mixins, methods, file:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>T</span>
|
||||||
|
Open fuzzy finder dialog
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Control the navigation frame:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>L</span>
|
||||||
|
Toggle list view
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>C</span>
|
||||||
|
Show class list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>I</span>
|
||||||
|
Show mixin list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>F</span>
|
||||||
|
Show file list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>M</span>
|
||||||
|
Show method list
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>E</span>
|
||||||
|
Show extras list
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
You can focus and blur the search input:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>S</span>
|
||||||
|
Focus search input
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>Esc</span>
|
||||||
|
Blur search input
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -57,6 +57,14 @@
|
||||||
src/beautifiers
|
src/beautifiers
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/beautifiers/beautysh.coffee.html' target='main'>
|
||||||
|
beautysh.coffee
|
||||||
|
</a>
|
||||||
|
<small class='namespace'>
|
||||||
|
src/beautifiers
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='file/src/beautifiers/clang-format.coffee.html' target='main'>
|
<a href='file/src/beautifiers/clang-format.coffee.html' target='main'>
|
||||||
clang-format.coffee
|
clang-format.coffee
|
||||||
|
@ -65,6 +73,22 @@
|
||||||
src/beautifiers
|
src/beautifiers
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>
|
||||||
|
cljfmt
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/beautifiers/cljfmt/index.coffee.html' target='main'>
|
||||||
|
index.coffee
|
||||||
|
</a>
|
||||||
|
<small class='namespace'>
|
||||||
|
src/beautifiers/cljfmt
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href='file/src/beautifiers/coffee-fmt.coffee.html' target='main'>
|
<a href='file/src/beautifiers/coffee-fmt.coffee.html' target='main'>
|
||||||
coffee-fmt.coffee
|
coffee-fmt.coffee
|
||||||
|
@ -441,6 +465,14 @@
|
||||||
src/languages
|
src/languages
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/languages/bash.coffee.html' target='main'>
|
||||||
|
bash.coffee
|
||||||
|
</a>
|
||||||
|
<small class='namespace'>
|
||||||
|
src/languages
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='file/src/languages/c-sharp.coffee.html' target='main'>
|
<a href='file/src/languages/c-sharp.coffee.html' target='main'>
|
||||||
c-sharp.coffee
|
c-sharp.coffee
|
||||||
|
@ -457,6 +489,14 @@
|
||||||
src/languages
|
src/languages
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/languages/clojure.coffee.html' target='main'>
|
||||||
|
clojure.coffee
|
||||||
|
</a>
|
||||||
|
<small class='namespace'>
|
||||||
|
src/languages
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='file/src/languages/coffeescript.coffee.html' target='main'>
|
<a href='file/src/languages/coffeescript.coffee.html' target='main'>
|
||||||
coffeescript.coffee
|
coffeescript.coffee
|
||||||
|
@ -857,6 +897,14 @@
|
||||||
src/languages
|
src/languages
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='file/src/languages/ux_markup.coffee.html' target='main'>
|
||||||
|
ux_markup.coffee
|
||||||
|
</a>
|
||||||
|
<small class='namespace'>
|
||||||
|
src/languages
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='file/src/languages/vala.coffee.html' target='main'>
|
<a href='file/src/languages/vala.coffee.html' target='main'>
|
||||||
vala.coffee
|
vala.coffee
|
||||||
|
|
|
@ -11589,27 +11589,27 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
try {
|
try {
|
||||||
parent.frames.list.$('#search input').focus().select();
|
parent.frames.list.$('#search input').focus().select();
|
||||||
} catch (undefined) {}
|
} catch (error) {}
|
||||||
try {
|
try {
|
||||||
return $('#search input').focus().select();
|
return $('#search input').focus().select();
|
||||||
} catch (undefined) {}
|
} catch (error) {}
|
||||||
});
|
});
|
||||||
key('esc', function() {
|
key('esc', function() {
|
||||||
try {
|
try {
|
||||||
parent.frames.list.$('#search input').blur();
|
parent.frames.list.$('#search input').blur();
|
||||||
parent.frames.main.$('#help').hide();
|
parent.frames.main.$('#help').hide();
|
||||||
parent.frames.main.$('#fuzzySearch').hide();
|
parent.frames.main.$('#fuzzySearch').hide();
|
||||||
} catch (undefined) {}
|
} catch (error) {}
|
||||||
try {
|
try {
|
||||||
parent.$("#search .active").click();
|
parent.$("#search .active").click();
|
||||||
parent.$('#help').hide();
|
parent.$('#help').hide();
|
||||||
parent.$('#fuzzySearch').hide();
|
parent.$('#fuzzySearch').hide();
|
||||||
} catch (undefined) {}
|
} catch (error) {}
|
||||||
try {
|
try {
|
||||||
$('#search input').blur();
|
$('#search input').blur();
|
||||||
$('#help').hide();
|
$('#help').hide();
|
||||||
return $('#fuzzySearch').hide();
|
return $('#fuzzySearch').hide();
|
||||||
} catch (undefined) {}
|
} catch (error) {}
|
||||||
});
|
});
|
||||||
key('l', function() {
|
key('l', function() {
|
||||||
var body;
|
var body;
|
||||||
|
@ -11638,13 +11638,12 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
||||||
return loadSearch('extra_list.html', 'extra_list_link');
|
return loadSearch('extra_list.html', 'extra_list_link');
|
||||||
});
|
});
|
||||||
key('h', function() {
|
key('h', function() {
|
||||||
var error;
|
|
||||||
try {
|
try {
|
||||||
return parent.frames.main.$('#help').toggle();
|
return parent.frames.main.$('#help').toggle();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
try {
|
try {
|
||||||
return $('#help').toggle();
|
return $('#help').toggle();
|
||||||
} catch (undefined) {}
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return key('t', function(e) {
|
return key('t', function(e) {
|
||||||
|
@ -11652,11 +11651,11 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
||||||
try {
|
try {
|
||||||
$('#fuzzySearch').toggle();
|
$('#fuzzySearch').toggle();
|
||||||
$('#fuzzySearch input').focus().select();
|
$('#fuzzySearch input').focus().select();
|
||||||
} catch (undefined) {}
|
} catch (error) {}
|
||||||
try {
|
try {
|
||||||
parent.frames.main.$('#fuzzySearch').show();
|
parent.frames.main.$('#fuzzySearch').show();
|
||||||
return parent.frames.main.$('#fuzzySearch input').focus().select();
|
return parent.frames.main.$('#fuzzySearch input').focus().select();
|
||||||
} catch (undefined) {}
|
} catch (error) {}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -38,19 +38,19 @@
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Gofmt.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/Gherkin.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
</a>
|
</a>
|
||||||
<small>
|
<small>
|
||||||
(Gofmt)
|
(Gherkin)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/OCPIndent.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/PerlTidy.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
</a>
|
</a>
|
||||||
<small>
|
<small>
|
||||||
(OCPIndent)
|
(PerlTidy)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -61,6 +61,14 @@
|
||||||
(src/beautify.coffee)
|
(src/beautify.coffee)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/OCPIndent.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(OCPIndent)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/MarkoBeautifier.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/MarkoBeautifier.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
|
@ -85,14 +93,6 @@
|
||||||
(LatexBeautify)
|
(LatexBeautify)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href='class/Rustfmt.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(Rustfmt)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Autopep8.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/Autopep8.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
|
@ -102,43 +102,11 @@
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/JSCSFixer.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/Sqlformat.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
</a>
|
</a>
|
||||||
<small>
|
<small>
|
||||||
(JSCSFixer)
|
(Sqlformat)
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href='class/RubyBeautify.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(RubyBeautify)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href='class/JSBeautify.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(JSBeautify)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href='class/PHPCSFixer.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(PHPCSFixer)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href='class/Rubocop.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(Rubocop)
|
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -149,6 +117,30 @@
|
||||||
(SassConvert)
|
(SassConvert)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/JSCSFixer.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(JSCSFixer)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/JSBeautify.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(JSBeautify)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Rustfmt.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(Rustfmt)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/PHPCBF.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/PHPCBF.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
|
@ -157,6 +149,14 @@
|
||||||
(PHPCBF)
|
(PHPCBF)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/StylishHaskell.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(StylishHaskell)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/PrettyDiff.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/PrettyDiff.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
|
@ -174,27 +174,35 @@
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Yapf.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/RubyBeautify.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
</a>
|
</a>
|
||||||
<small>
|
<small>
|
||||||
(Yapf)
|
(RubyBeautify)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Sqlformat.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/TidyMarkdown.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
</a>
|
</a>
|
||||||
<small>
|
<small>
|
||||||
(Sqlformat)
|
(TidyMarkdown)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/StylishHaskell.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/BashBeautify.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
</a>
|
</a>
|
||||||
<small>
|
<small>
|
||||||
(StylishHaskell)
|
(BashBeautify)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/TypeScriptFormatter.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(TypeScriptFormatter)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -205,6 +213,14 @@
|
||||||
(ClangFormat)
|
(ClangFormat)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Cljfmt.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(Cljfmt)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/CoffeeFmt.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/CoffeeFmt.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
|
@ -277,14 +293,6 @@
|
||||||
(FortranBeautifier)
|
(FortranBeautifier)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href='class/Gherkin.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(Gherkin)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Beautifiers.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/Beautifiers.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
|
@ -293,6 +301,14 @@
|
||||||
(Beautifiers)
|
(Beautifiers)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Gofmt.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(Gofmt)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/HTMLBeautifier.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/HTMLBeautifier.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
|
@ -301,30 +317,6 @@
|
||||||
(HTMLBeautifier)
|
(HTMLBeautifier)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href='class/TidyMarkdown.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(TidyMarkdown)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href='class/TypeScriptFormatter.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(TypeScriptFormatter)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href='class/Remark.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(Remark)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Uncrustify.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/Uncrustify.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
|
@ -333,14 +325,6 @@
|
||||||
(Uncrustify)
|
(Uncrustify)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href='class/PuppetFix.html#beautify-dynamic' target='main' title='beautify'>
|
|
||||||
#beautify
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(PuppetFix)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href='class/VueBeautifier.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/VueBeautifier.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
|
@ -350,11 +334,43 @@
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/PerlTidy.html#beautify-dynamic' target='main' title='beautify'>
|
<a href='class/Rubocop.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
#beautify
|
#beautify
|
||||||
</a>
|
</a>
|
||||||
<small>
|
<small>
|
||||||
(PerlTidy)
|
(Rubocop)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Yapf.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(Yapf)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Remark.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(Remark)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/PuppetFix.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(PuppetFix)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/PHPCSFixer.html#beautify-dynamic' target='main' title='beautify'>
|
||||||
|
#beautify
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(PHPCSFixer)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -429,6 +445,22 @@
|
||||||
(Beautifier)
|
(Beautifier)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Languages.html#constructor-dynamic' target='main' title='constructor'>
|
||||||
|
#constructor
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(Languages)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Beautifiers.html#constructor-dynamic' target='main' title='constructor'>
|
||||||
|
#constructor
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(Beautifiers)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/MessageView.html#constructor-dynamic' target='main' title='constructor'>
|
<a href='class/MessageView.html#constructor-dynamic' target='main' title='constructor'>
|
||||||
#constructor
|
#constructor
|
||||||
|
@ -446,11 +478,11 @@
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Beautifiers.html#constructor-dynamic' target='main' title='constructor'>
|
<a href='class/LoadingView.html#content-static' target='main' title='content'>
|
||||||
#constructor
|
.content
|
||||||
</a>
|
</a>
|
||||||
<small>
|
<small>
|
||||||
(Beautifiers)
|
(LoadingView)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -461,14 +493,6 @@
|
||||||
(MessageView)
|
(MessageView)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href='class/LoadingView.html#content-static' target='main' title='content'>
|
|
||||||
.content
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(LoadingView)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href='file/src/beautify.coffee.html#debug-' target='main' title='debug'>
|
<a href='file/src/beautify.coffee.html#debug-' target='main' title='debug'>
|
||||||
~debug
|
~debug
|
||||||
|
@ -517,14 +541,6 @@
|
||||||
(Beautifiers)
|
(Beautifiers)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href='class/Beautifier.html#findFile-dynamic' target='main' title='findFile'>
|
|
||||||
#findFile
|
|
||||||
</a>
|
|
||||||
<small>
|
|
||||||
(Beautifier)
|
|
||||||
</small>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Beautifiers.html#findFile-dynamic' target='main' title='findFile'>
|
<a href='class/Beautifiers.html#findFile-dynamic' target='main' title='findFile'>
|
||||||
#findFile
|
#findFile
|
||||||
|
@ -533,6 +549,14 @@
|
||||||
(Beautifiers)
|
(Beautifiers)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Beautifier.html#findFile-dynamic' target='main' title='findFile'>
|
||||||
|
#findFile
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(Beautifier)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Beautifiers.html#getBeautifierForLanguage-dynamic' target='main' title='getBeautifierForLanguage'>
|
<a href='class/Beautifiers.html#getBeautifierForLanguage-dynamic' target='main' title='getBeautifierForLanguage'>
|
||||||
#getBeautifierForLanguage
|
#getBeautifierForLanguage
|
||||||
|
@ -581,6 +605,14 @@
|
||||||
(Beautifiers)
|
(Beautifiers)
|
||||||
</small>
|
</small>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='class/Languages.html#getLanguages-dynamic' target='main' title='getLanguages'>
|
||||||
|
#getLanguages
|
||||||
|
</a>
|
||||||
|
<small>
|
||||||
|
(Languages)
|
||||||
|
</small>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href='class/Beautifiers.html#getOptions-dynamic' target='main' title='getOptions'>
|
<a href='class/Beautifiers.html#getOptions-dynamic' target='main' title='getOptions'>
|
||||||
#getOptions
|
#getOptions
|
||||||
|
|
|
@ -150,6 +150,31 @@ Handlebars.registerHelper('language-options-support', (languageOptions, options)
|
||||||
return new Handlebars.SafeString(results)
|
return new Handlebars.SafeString(results)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Handlebars.registerHelper('beautifiers-info', (beautifiers, options) ->
|
||||||
|
|
||||||
|
###
|
||||||
|
| Beautifier | Is Pre-Installed? | Installation Instructions |
|
||||||
|
| --- | ---- |
|
||||||
|
| Pretty Diff | :white_check_mark: | N/A |
|
||||||
|
| AutoPEP8 | :x: | LINK |
|
||||||
|
###
|
||||||
|
|
||||||
|
rows = _.map(beautifiers, (beautifier, k) ->
|
||||||
|
name = beautifier.name
|
||||||
|
isPreInstalled = beautifier.isPreInstalled
|
||||||
|
link = beautifier.link
|
||||||
|
installationInstructions = if isPreInstalled then "Nothing!" else "Go to #{link} and follow the instructions."
|
||||||
|
return "| #{name} | #{if isPreInstalled then ':white_check_mark:' else ':x:'} | #{installationInstructions} |"
|
||||||
|
)
|
||||||
|
results = """
|
||||||
|
| Beautifier | Is Pre-Installed? | Installation Instructions |
|
||||||
|
| --- | --- | --- |
|
||||||
|
#{rows.join('\n')}
|
||||||
|
"""
|
||||||
|
return new Handlebars.SafeString(results)
|
||||||
|
)
|
||||||
|
|
||||||
sortKeysBy = (obj, comparator) ->
|
sortKeysBy = (obj, comparator) ->
|
||||||
keys = _.sortBy(_.keys(obj), (key) ->
|
keys = _.sortBy(_.keys(obj), (key) ->
|
||||||
return if comparator then comparator(obj[key], key) else key
|
return if comparator then comparator(obj[key], key) else key
|
||||||
|
@ -176,6 +201,7 @@ context = {
|
||||||
packageOptions: sortSettings(packageOptions)
|
packageOptions: sortSettings(packageOptions)
|
||||||
languageOptions: sortSettings(languageOptions)
|
languageOptions: sortSettings(languageOptions)
|
||||||
beautifierOptions: sortSettings(beautifierOptions)
|
beautifierOptions: sortSettings(beautifierOptions)
|
||||||
|
beautifiers: _.sortBy(beautifier.beautifiers, (beautifier) -> beautifier.name.toLowerCase())
|
||||||
}
|
}
|
||||||
result = template(context)
|
result = template(context)
|
||||||
readmeResult = readmeTemplate(context)
|
readmeResult = readmeTemplate(context)
|
||||||
|
|
2816
docs/options.md
2816
docs/options.md
File diff suppressed because it is too large
Load Diff
|
@ -60,3 +60,7 @@
|
||||||
indent_size: 4
|
indent_size: 4
|
||||||
indent_char: " "
|
indent_char: " "
|
||||||
omit_div: true
|
omit_div: true
|
||||||
|
vue:
|
||||||
|
space_before_conditional: false
|
||||||
|
space_after_anon_function: false
|
||||||
|
jslint_happy: false
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
# Displays information about the network configuration
|
||||||
|
netinfo() {
|
||||||
|
printf '--------------- Network Information ---------------\n'
|
||||||
|
/sbin/ifconfig | awk /'inet addr/ {print $2}'
|
||||||
|
/sbin/ifconfig | awk /'Bcast/ {print $3}'
|
||||||
|
/sbin/ifconfig | awk /'inet addr/ {print $4}'
|
||||||
|
/sbin/ifconfig | awk /'HWaddr/ {print $4,$5}'
|
||||||
|
myIP =$(wget -qO- http://ipecho.net/plain)
|
||||||
|
printf 'Public: %s\n' "$myIP"
|
||||||
|
printf '---------------------------------------------------'
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
# Displays information about the network configuration
|
||||||
|
netinfo() {
|
||||||
|
printf '--------------- Network Information ---------------\n'
|
||||||
|
/sbin/ifconfig | awk /'inet addr/ {print $2}'
|
||||||
|
/sbin/ifconfig | awk /'Bcast/ {print $3}'
|
||||||
|
/sbin/ifconfig | awk /'inet addr/ {print $4}'
|
||||||
|
/sbin/ifconfig | awk /'HWaddr/ {print $4,$5}'
|
||||||
|
myIP =$(wget -qO- http://ipecho.net/plain)
|
||||||
|
printf 'Public: %s\n' "$myIP"
|
||||||
|
printf '---------------------------------------------------'
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
export default {
|
||||||
|
data : function() {
|
||||||
|
return {text: 'Hello, world!'}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
export default {
|
||||||
|
data: function () {
|
||||||
|
return {
|
||||||
|
text: 'Hello, world!'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data: function() {
|
||||||
|
return {
|
||||||
|
text: 'Hello, world!'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -0,0 +1,9 @@
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data: function () {
|
||||||
|
return {
|
||||||
|
text: 'Hello, world!'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -1,5 +1,34 @@
|
||||||
-- Ensure that that the element at i is in the right position,
|
-- Ensure that that the element at i is in the right position,
|
||||||
-- and return a closure which can be used for continuing the sort.
|
-- and return a closure which can be used for continuing the sort.
|
||||||
|
local a = 'a b c'
|
||||||
|
local b = '12345678'
|
||||||
|
local c = 'a b c' + 'a b c'
|
||||||
|
local t = {
|
||||||
|
a = 1,
|
||||||
|
b = 2,
|
||||||
|
c = 3,
|
||||||
|
}
|
||||||
|
if a ~= 'a' then
|
||||||
|
local b = a
|
||||||
|
end
|
||||||
|
local e = {a = 1, b = 2}
|
||||||
|
function aaa(a, b, c)
|
||||||
|
|
||||||
|
-- comment 1
|
||||||
|
-- comment 2 1231
|
||||||
|
-- comment 1 123 123 123123 12
|
||||||
|
-- [[ comment 1 ]]
|
||||||
|
--[[
|
||||||
|
muli comments
|
||||||
|
ssss
|
||||||
|
@asdasd sad
|
||||||
|
]]
|
||||||
|
local a = -1
|
||||||
|
return a + b - c
|
||||||
|
end
|
||||||
|
local b = {a = 1, b = [[this is two space ;
|
||||||
|
]], c = 2}
|
||||||
|
|
||||||
function quicksorter(i, vec, low, high)
|
function quicksorter(i, vec, low, high)
|
||||||
if low >= high then
|
if low >= high then
|
||||||
return quicksorter
|
return quicksorter
|
||||||
|
@ -11,10 +40,10 @@ function quicksorter(i, vec, low, high)
|
||||||
-- Create the promise
|
-- Create the promise
|
||||||
local function self(i, vec, low, high)
|
local function self(i, vec, low, high)
|
||||||
if i < middle then
|
if i < middle then
|
||||||
left = left(i, vec, low, middle-1)
|
left = left(i, vec, low, middle - 1)
|
||||||
return self
|
return self
|
||||||
elseif i > middle then
|
elseif i > middle then
|
||||||
right = right(i, vec, middle+1, high)
|
right = right(i, vec, middle + 1, high)
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,34 @@
|
||||||
-- Ensure that that the element at i is in the right position,
|
-- Ensure that that the element at i is in the right position,
|
||||||
-- and return a closure which can be used for continuing the sort.
|
-- and return a closure which can be used for continuing the sort.
|
||||||
|
local a= 'a b c'
|
||||||
|
local b ='12345678'
|
||||||
|
local c = 'a b c' +'a b c'
|
||||||
|
local t = {
|
||||||
|
a = 1,
|
||||||
|
b =2 ,
|
||||||
|
c= 3,
|
||||||
|
}
|
||||||
|
if a~='a' then
|
||||||
|
local b=a
|
||||||
|
end
|
||||||
|
local e={a=1,b=2}
|
||||||
|
function aaa(a,b,c)
|
||||||
|
|
||||||
|
-- comment 1
|
||||||
|
-- comment 2 1231
|
||||||
|
-- comment 1 123 123 123123 12
|
||||||
|
-- [[ comment 1 ]]
|
||||||
|
--[[
|
||||||
|
muli comments
|
||||||
|
ssss
|
||||||
|
@asdasd sad
|
||||||
|
]]
|
||||||
|
local a = -1
|
||||||
|
return a+b-c
|
||||||
|
end
|
||||||
|
local b = {a=1,b=[[this is two space ;
|
||||||
|
]],c=2}
|
||||||
|
|
||||||
function quicksorter(i, vec, low, high)
|
function quicksorter(i, vec, low, high)
|
||||||
if low >= high then
|
if low >= high then
|
||||||
return quicksorter
|
return quicksorter
|
||||||
|
|
27
package.json
27
package.json
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "atom-beautify",
|
"name": "atom-beautify",
|
||||||
"main": "./src/beautify",
|
"main": "./src/beautify",
|
||||||
"version": "0.29.13",
|
"version": "0.29.18",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom",
|
"description": "Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -118,6 +118,14 @@
|
||||||
{
|
{
|
||||||
"name": "Daniel Brodin",
|
"name": "Daniel Brodin",
|
||||||
"url": "https://github.com/danielbrodin"
|
"url": "https://github.com/danielbrodin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Anton Brok-Volchansky",
|
||||||
|
"url": "https://github.com/re6exp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Taylon Silmer",
|
||||||
|
"url": "https://github.com/taylon"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -134,11 +142,11 @@
|
||||||
"csscomb": "^3.1.7",
|
"csscomb": "^3.1.7",
|
||||||
"diff": "3.0.0",
|
"diff": "3.0.0",
|
||||||
"editorconfig": "^0.13.2",
|
"editorconfig": "^0.13.2",
|
||||||
|
"eslint": "^3.13.1",
|
||||||
"event-kit": "^2.1.0",
|
"event-kit": "^2.1.0",
|
||||||
"expand-home-dir": "0.0.3",
|
"expand-home-dir": "0.0.3",
|
||||||
"extend": "^3.0.0",
|
"extend": "^3.0.0",
|
||||||
"gherkin": "2.12.2",
|
"gherkin": "2.12.2",
|
||||||
"github": "^3.1.1",
|
|
||||||
"handlebars": "^4.0.2",
|
"handlebars": "^4.0.2",
|
||||||
"js-beautify": "^1.6.3",
|
"js-beautify": "^1.6.3",
|
||||||
"jscs": "^3.0.7",
|
"jscs": "^3.0.7",
|
||||||
|
@ -156,7 +164,7 @@
|
||||||
"space-pen": "^5.1.1",
|
"space-pen": "^5.1.1",
|
||||||
"strip-json-comments": "^2.0.1",
|
"strip-json-comments": "^2.0.1",
|
||||||
"temp": "^0.8.3",
|
"temp": "^0.8.3",
|
||||||
"tidy-markdown": "^2.0.3",
|
"tidy-markdown": "2.0.3",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "^1.8.10",
|
||||||
"typescript-formatter": "^2.3.0",
|
"typescript-formatter": "^2.3.0",
|
||||||
"underscore-plus": "^1.6.6",
|
"underscore-plus": "^1.6.6",
|
||||||
|
@ -264,6 +272,8 @@
|
||||||
"fortran beautifier",
|
"fortran beautifier",
|
||||||
"js beautify",
|
"js beautify",
|
||||||
"jscs fixer",
|
"jscs fixer",
|
||||||
|
"eslint",
|
||||||
|
"eslint fixer",
|
||||||
"lua beautifier",
|
"lua beautifier",
|
||||||
"ocp-indent",
|
"ocp-indent",
|
||||||
"perltidy",
|
"perltidy",
|
||||||
|
@ -292,16 +302,21 @@
|
||||||
"clojure beautifier",
|
"clojure beautifier",
|
||||||
"nunjucks",
|
"nunjucks",
|
||||||
"ux markup",
|
"ux markup",
|
||||||
"cljfmt"
|
"cljfmt",
|
||||||
|
"bash",
|
||||||
|
"beautysh",
|
||||||
|
"glsl",
|
||||||
|
"hh_format"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"coffeelint": "^1.10.1",
|
"coffeelint": "^1.10.1",
|
||||||
"handlebars": "^4.0.2"
|
"handlebars": "^4.0.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "node script/build-options.js",
|
"build-options": "node script/build-options.js",
|
||||||
|
"postinstall": "npm run build-options",
|
||||||
|
"docs": "npm run build-options && coffee docs/",
|
||||||
"prepublish": "npm run docs",
|
"prepublish": "npm run docs",
|
||||||
"docs": "coffee docs/",
|
|
||||||
"lint": "coffeelint src/ spec/",
|
"lint": "coffeelint src/ spec/",
|
||||||
"code-docs": "codo && open docs/code/index.html"
|
"code-docs": "codo && open docs/code/index.html"
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,8 @@ _plus = require('underscore-plus');
|
||||||
|
|
||||||
require("coffee-script/register");
|
require("coffee-script/register");
|
||||||
|
|
||||||
|
logger = require('../src/logger')(__filename)
|
||||||
|
|
||||||
Beautifiers = require("../src/beautifiers");
|
Beautifiers = require("../src/beautifiers");
|
||||||
|
|
||||||
buildOptionsForBeautifiers = function(beautifiers, allLanguages) {
|
buildOptionsForBeautifiers = function(beautifiers, allLanguages) {
|
||||||
|
@ -209,6 +211,11 @@ buildOptionsForBeautifiers = function(beautifiers, allLanguages) {
|
||||||
options[field] = op;
|
options[field] = op;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function mergeCustomizer(objValue, srcValue) {
|
||||||
|
if (_.isArray(objValue)) {
|
||||||
|
return _.uniq(objValue.concat(srcValue));
|
||||||
|
}
|
||||||
|
}
|
||||||
for (j = 0, len1 = allLanguages.length; j < len1; j++) {
|
for (j = 0, len1 = allLanguages.length; j < len1; j++) {
|
||||||
lang = allLanguages[j];
|
lang = allLanguages[j];
|
||||||
namespaceDest = lang.namespace;
|
namespaceDest = lang.namespace;
|
||||||
|
@ -217,7 +224,7 @@ buildOptionsForBeautifiers = function(beautifiers, allLanguages) {
|
||||||
for (k = 0, len2 = fallback.length; k < len2; k++) {
|
for (k = 0, len2 = fallback.length; k < len2; k++) {
|
||||||
namespaceSrc = fallback[k];
|
namespaceSrc = fallback[k];
|
||||||
optionsSrc = _.get(langOptions, namespaceSrc + ".properties");
|
optionsSrc = _.get(langOptions, namespaceSrc + ".properties");
|
||||||
_.merge(optionsDest, optionsSrc);
|
_.mergeWith(optionsDest, optionsSrc, mergeCustomizer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (l = 0, len3 = beautifiers.length; l < len3; l++) {
|
for (l = 0, len3 = beautifiers.length; l < len3; l++) {
|
||||||
|
|
|
@ -9,6 +9,7 @@ module.exports = class Autopep8 extends Beautifier
|
||||||
|
|
||||||
name: "autopep8"
|
name: "autopep8"
|
||||||
link: "https://github.com/hhatto/autopep8"
|
link: "https://github.com/hhatto/autopep8"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Python: true
|
Python: true
|
||||||
|
|
|
@ -31,6 +31,11 @@ module.exports = class Beautifier
|
||||||
###
|
###
|
||||||
options: {}
|
options: {}
|
||||||
|
|
||||||
|
###
|
||||||
|
Is the beautifier a command-line interface beautifier?
|
||||||
|
###
|
||||||
|
isPreInstalled: true
|
||||||
|
|
||||||
###
|
###
|
||||||
Supported languages by this Beautifier
|
Supported languages by this Beautifier
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
"use strict"
|
||||||
|
Beautifier = require('./beautifier')
|
||||||
|
|
||||||
|
module.exports = class BashBeautify extends Beautifier
|
||||||
|
name: "beautysh"
|
||||||
|
link: "https://github.com/bemeurer/beautysh"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
|
options: {
|
||||||
|
Bash:
|
||||||
|
indent_size: true
|
||||||
|
}
|
||||||
|
|
||||||
|
beautify: (text, language, options) ->
|
||||||
|
file = @tempFile("input", text)
|
||||||
|
@run('beautysh', [ '-i', options.indent_size, '-f', file ], help: { link: "https://github.com/bemeurer/beautysh" })
|
||||||
|
.then(=> @readFile file)
|
|
@ -11,11 +11,13 @@ module.exports = class ClangFormat extends Beautifier
|
||||||
|
|
||||||
name: "clang-format"
|
name: "clang-format"
|
||||||
link: "https://clang.llvm.org/docs/ClangFormat.html"
|
link: "https://clang.llvm.org/docs/ClangFormat.html"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
"C++": false
|
"C++": false
|
||||||
"C": false
|
"C": false
|
||||||
"Objective-C": false
|
"Objective-C": false
|
||||||
|
"GLSL": true
|
||||||
}
|
}
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
|
@ -8,9 +8,10 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class Crystal extends Beautifier
|
module.exports = class Crystal extends Beautifier
|
||||||
name: "Crystal"
|
name: "Crystal"
|
||||||
link: "http://crystal-lang.org"
|
link: "http://crystal-lang.org"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Crystal: true
|
Crystal: false
|
||||||
}
|
}
|
||||||
|
|
||||||
beautify: (text, language, options) ->
|
beautify: (text, language, options) ->
|
||||||
|
|
|
@ -7,6 +7,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class Dfmt extends Beautifier
|
module.exports = class Dfmt extends Beautifier
|
||||||
name: "dfmt"
|
name: "dfmt"
|
||||||
link: "https://github.com/Hackerpilot/dfmt"
|
link: "https://github.com/Hackerpilot/dfmt"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
D: false
|
D: false
|
||||||
|
|
|
@ -7,6 +7,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class ElmFormat extends Beautifier
|
module.exports = class ElmFormat extends Beautifier
|
||||||
name: "elm-format"
|
name: "elm-format"
|
||||||
link: "https://github.com/avh4/elm-format"
|
link: "https://github.com/avh4/elm-format"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Elm: true
|
Elm: true
|
||||||
|
|
|
@ -9,6 +9,7 @@ module.exports = class ErlTidy extends Beautifier
|
||||||
|
|
||||||
name: "erl_tidy"
|
name: "erl_tidy"
|
||||||
link: "http://erlang.org/doc/man/erl_tidy.html"
|
link: "http://erlang.org/doc/man/erl_tidy.html"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Erlang: true
|
Erlang: true
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
"use strict"
|
||||||
|
|
||||||
|
Beautifier = require('./beautifier')
|
||||||
|
Path = require('path')
|
||||||
|
{allowUnsafeNewFunction} = require 'loophole'
|
||||||
|
|
||||||
|
module.exports = class ESLintFixer extends Beautifier
|
||||||
|
name: "ESLint Fixer"
|
||||||
|
link: "https://github.com/eslint/eslint"
|
||||||
|
|
||||||
|
options: {
|
||||||
|
JavaScript: false
|
||||||
|
}
|
||||||
|
|
||||||
|
beautify: (text, language, options) ->
|
||||||
|
return new @Promise((resolve, reject) ->
|
||||||
|
editor = atom.workspace.getActiveTextEditor()
|
||||||
|
filePath = editor.getPath()
|
||||||
|
projectPath = atom.project.relativizePath(filePath)[0]
|
||||||
|
|
||||||
|
result = null
|
||||||
|
allowUnsafeNewFunction ->
|
||||||
|
importPath = Path.join(projectPath, 'node_modules', 'eslint')
|
||||||
|
try
|
||||||
|
CLIEngine = require(importPath).CLIEngine
|
||||||
|
|
||||||
|
cli = new CLIEngine(fix: true, cwd: projectPath)
|
||||||
|
result = cli.executeOnText(text).results[0]
|
||||||
|
|
||||||
|
resolve result.output
|
||||||
|
catch err
|
||||||
|
reject(err)
|
||||||
|
)
|
|
@ -9,6 +9,7 @@ Beautifier = require('../beautifier')
|
||||||
module.exports = class R extends Beautifier
|
module.exports = class R extends Beautifier
|
||||||
name: "formatR"
|
name: "formatR"
|
||||||
link: "https://github.com/yihui/formatR"
|
link: "https://github.com/yihui/formatR"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
R: true
|
R: true
|
||||||
|
|
|
@ -8,7 +8,8 @@ path = require("path")
|
||||||
|
|
||||||
module.exports = class FortranBeautifier extends Beautifier
|
module.exports = class FortranBeautifier extends Beautifier
|
||||||
name: "Fortran Beautifier"
|
name: "Fortran Beautifier"
|
||||||
link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/fortran-beautifier/emacs-fortran-formating-script.lisp"
|
link: "https://www.gnu.org/software/emacs/"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Fortran: true
|
Fortran: true
|
||||||
|
|
|
@ -8,6 +8,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class Gofmt extends Beautifier
|
module.exports = class Gofmt extends Beautifier
|
||||||
name: "gofmt"
|
name: "gofmt"
|
||||||
link: "https://golang.org/cmd/gofmt/"
|
link: "https://golang.org/cmd/gofmt/"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Go: true
|
Go: true
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
###
|
||||||
|
Requires http://hhvm.com/
|
||||||
|
###
|
||||||
|
|
||||||
|
"use strict"
|
||||||
|
Beautifier = require('./beautifier')
|
||||||
|
|
||||||
|
module.exports = class HhFormat extends Beautifier
|
||||||
|
name: "hh_format"
|
||||||
|
link: "http://hhvm.com/"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
|
options:
|
||||||
|
PHP: false
|
||||||
|
|
||||||
|
beautify: (text, language, options) ->
|
||||||
|
@run("hh_format", [
|
||||||
|
@tempFile("input", text)
|
||||||
|
],
|
||||||
|
{
|
||||||
|
help: {
|
||||||
|
link: "http://hhvm.com/"
|
||||||
|
}
|
||||||
|
}).then((output) ->
|
||||||
|
# hh_format can exit with status 0 and no output for some files which
|
||||||
|
# it doesn't format. In that case we just return original text.
|
||||||
|
if output.trim()
|
||||||
|
output
|
||||||
|
else
|
||||||
|
@Promise.resolve(new Error("hh_format returned an empty output."))
|
||||||
|
)
|
|
@ -8,6 +8,8 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class HTMLBeautifier extends Beautifier
|
module.exports = class HTMLBeautifier extends Beautifier
|
||||||
name: "HTML Beautifier"
|
name: "HTML Beautifier"
|
||||||
link: "https://github.com/threedaymonk/htmlbeautifier"
|
link: "https://github.com/threedaymonk/htmlbeautifier"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
ERB:
|
ERB:
|
||||||
indent_size: true
|
indent_size: true
|
||||||
|
|
|
@ -43,6 +43,7 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
'crystal'
|
'crystal'
|
||||||
'dfmt'
|
'dfmt'
|
||||||
'elm-format'
|
'elm-format'
|
||||||
|
'hh_format'
|
||||||
'htmlbeautifier'
|
'htmlbeautifier'
|
||||||
'csscomb'
|
'csscomb'
|
||||||
'gherkin'
|
'gherkin'
|
||||||
|
@ -51,6 +52,7 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
'fortran-beautifier'
|
'fortran-beautifier'
|
||||||
'js-beautify'
|
'js-beautify'
|
||||||
'jscs'
|
'jscs'
|
||||||
|
'eslint'
|
||||||
'lua-beautifier'
|
'lua-beautifier'
|
||||||
'ocp-indent'
|
'ocp-indent'
|
||||||
'perltidy'
|
'perltidy'
|
||||||
|
@ -73,6 +75,7 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
'erl_tidy'
|
'erl_tidy'
|
||||||
'marko-beautifier'
|
'marko-beautifier'
|
||||||
'formatR'
|
'formatR'
|
||||||
|
'beautysh'
|
||||||
]
|
]
|
||||||
|
|
||||||
###
|
###
|
||||||
|
@ -138,20 +141,32 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
) or beautifiers[0]
|
) or beautifiers[0]
|
||||||
return beautifier
|
return beautifier
|
||||||
|
|
||||||
getLanguage : (grammar, filePath) ->
|
getExtension : (filePath) ->
|
||||||
|
if filePath
|
||||||
|
return path.extname(filePath).substr(1)
|
||||||
|
|
||||||
|
getLanguages : (grammar, filePath) ->
|
||||||
# Get language
|
# Get language
|
||||||
fileExtension = path.extname(filePath)
|
fileExtension = @getExtension(filePath)
|
||||||
# Remove prefix "." (period) in fileExtension
|
|
||||||
fileExtension = fileExtension.substr(1)
|
if fileExtension
|
||||||
languages = @languages.getLanguages({grammar, extension: fileExtension})
|
languages = @languages.getLanguages({grammar, extension: fileExtension})
|
||||||
logger.verbose(languages, grammar, fileExtension)
|
|
||||||
# Check if unsupported language
|
|
||||||
if languages.length < 1
|
|
||||||
return null
|
|
||||||
else
|
else
|
||||||
# TODO: select appropriate language
|
languages = @languages.getLanguages({grammar})
|
||||||
|
|
||||||
|
logger.verbose(languages, grammar, fileExtension)
|
||||||
|
|
||||||
|
return languages
|
||||||
|
|
||||||
|
getLanguage : (grammar, filePath) ->
|
||||||
|
languages = @getLanguages(grammar, filePath)
|
||||||
|
|
||||||
|
# Check if unsupported language
|
||||||
|
if languages.length > 0
|
||||||
language = languages[0]
|
language = languages[0]
|
||||||
|
|
||||||
|
return language
|
||||||
|
|
||||||
getOptionsForLanguage : (allOptions, language) ->
|
getOptionsForLanguage : (allOptions, language) ->
|
||||||
# Options for Language
|
# Options for Language
|
||||||
selections = (language.fallback or []).concat([language.namespace])
|
selections = (language.fallback or []).concat([language.namespace])
|
||||||
|
@ -239,15 +254,10 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
logger.info('beautify', text, allOptions, grammar, filePath, onSave)
|
logger.info('beautify', text, allOptions, grammar, filePath, onSave)
|
||||||
logger.verbose(allOptions)
|
logger.verbose(allOptions)
|
||||||
|
|
||||||
# Get language
|
language = @getLanguage(grammar, filePath)
|
||||||
fileExtension = path.extname(filePath)
|
|
||||||
# Remove prefix "." (period) in fileExtension
|
|
||||||
fileExtension = fileExtension.substr(1)
|
|
||||||
languages = @languages.getLanguages({grammar, extension: fileExtension})
|
|
||||||
logger.verbose(languages, grammar, fileExtension)
|
|
||||||
|
|
||||||
# Check if unsupported language
|
# Check if unsupported language
|
||||||
if languages.length < 1
|
if !language
|
||||||
unsupportedGrammar = true
|
unsupportedGrammar = true
|
||||||
|
|
||||||
logger.verbose('Unsupported language')
|
logger.verbose('Unsupported language')
|
||||||
|
@ -258,19 +268,14 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
# not intended to be beautified
|
# not intended to be beautified
|
||||||
return resolve( null )
|
return resolve( null )
|
||||||
else
|
else
|
||||||
# TODO: select appropriate language
|
|
||||||
language = languages[0]
|
|
||||||
|
|
||||||
logger.verbose("Language #{language.name} supported")
|
logger.verbose("Language #{language.name} supported")
|
||||||
|
|
||||||
# Get language config
|
# Get language config
|
||||||
langDisabled = atom.config.get("atom-beautify.#{language.namespace}.disabled")
|
langDisabled = atom.config.get("atom-beautify.#{language.namespace}.disabled")
|
||||||
|
|
||||||
|
|
||||||
# Beautify!
|
# Beautify!
|
||||||
unsupportedGrammar = false
|
unsupportedGrammar = false
|
||||||
|
|
||||||
|
|
||||||
# Check if Language is disabled
|
# Check if Language is disabled
|
||||||
if langDisabled
|
if langDisabled
|
||||||
logger.verbose("Language #{language.name} is disabled")
|
logger.verbose("Language #{language.name} is disabled")
|
||||||
|
@ -368,6 +373,7 @@ module.exports = class Beautifiers extends EventEmitter
|
||||||
if atom.config.get("atom-beautify.general.muteUnsupportedLanguageErrors")
|
if atom.config.get("atom-beautify.general.muteUnsupportedLanguageErrors")
|
||||||
return resolve( null )
|
return resolve( null )
|
||||||
else
|
else
|
||||||
|
fileExtension = @getExtension(filePath)
|
||||||
repoBugsUrl = pkg.bugs.url
|
repoBugsUrl = pkg.bugs.url
|
||||||
title = "Atom Beautify could not find a supported beautifier for this file"
|
title = "Atom Beautify could not find a supported beautifier for this file"
|
||||||
detail = """
|
detail = """
|
||||||
|
|
|
@ -11,6 +11,8 @@ module.exports = class JSBeautify extends Beautifier
|
||||||
Handlebars: true
|
Handlebars: true
|
||||||
Mustache: true
|
Mustache: true
|
||||||
JavaScript: true
|
JavaScript: true
|
||||||
|
EJS: true
|
||||||
|
JSX: true
|
||||||
JSON: true
|
JSON: true
|
||||||
CSS:
|
CSS:
|
||||||
indent_size: true
|
indent_size: true
|
||||||
|
@ -31,7 +33,7 @@ module.exports = class JSBeautify extends Beautifier
|
||||||
return new @Promise((resolve, reject) =>
|
return new @Promise((resolve, reject) =>
|
||||||
try
|
try
|
||||||
switch language
|
switch language
|
||||||
when "JSON", "JavaScript"
|
when "JSON", "JavaScript", "JSX"
|
||||||
beautifyJS = require("js-beautify")
|
beautifyJS = require("js-beautify")
|
||||||
text = beautifyJS(text, options)
|
text = beautifyJS(text, options)
|
||||||
resolve text
|
resolve text
|
||||||
|
@ -42,7 +44,7 @@ module.exports = class JSBeautify extends Beautifier
|
||||||
beautifyHTML = require("js-beautify").html
|
beautifyHTML = require("js-beautify").html
|
||||||
text = beautifyHTML(text, options)
|
text = beautifyHTML(text, options)
|
||||||
resolve text
|
resolve text
|
||||||
when "HTML (Liquid)", "HTML", "XML", "Web Form/Control (C#)", "Web Handler (C#)"
|
when "EJS", "HTML (Liquid)", "HTML", "XML", "Web Form/Control (C#)", "Web Handler (C#)"
|
||||||
beautifyHTML = require("js-beautify").html
|
beautifyHTML = require("js-beautify").html
|
||||||
text = beautifyHTML(text, options)
|
text = beautifyHTML(text, options)
|
||||||
@debug("Beautified HTML: #{text}")
|
@debug("Beautified HTML: #{text}")
|
||||||
|
@ -51,6 +53,8 @@ module.exports = class JSBeautify extends Beautifier
|
||||||
beautifyCSS = require("js-beautify").css
|
beautifyCSS = require("js-beautify").css
|
||||||
text = beautifyCSS(text, options)
|
text = beautifyCSS(text, options)
|
||||||
resolve text
|
resolve text
|
||||||
|
else
|
||||||
|
reject(new Error("Unknown language for JS Beautify: "+language))
|
||||||
catch err
|
catch err
|
||||||
@error("JS Beautify error: #{err}")
|
@error("JS Beautify error: #{err}")
|
||||||
reject(err)
|
reject(err)
|
||||||
|
|
|
@ -8,6 +8,7 @@ temp = require("temp").track()
|
||||||
module.exports = class LatexBeautify extends Beautifier
|
module.exports = class LatexBeautify extends Beautifier
|
||||||
name: "Latex Beautify"
|
name: "Latex Beautify"
|
||||||
link: "https://github.com/cmhughes/latexindent.pl"
|
link: "https://github.com/cmhughes/latexindent.pl"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
LaTeX: true
|
LaTeX: true
|
||||||
|
|
|
@ -0,0 +1,103 @@
|
||||||
|
DEFAULT_INDENT = ' '
|
||||||
|
|
||||||
|
adjust_space = (line) ->
|
||||||
|
string_list = line.match /(['"])[^\1]*?\1/g
|
||||||
|
muli_string = line.match /\[(=*)\[([^\]\1\]]*)/
|
||||||
|
comment = line.match /\-{2}[^\[].*$/
|
||||||
|
line = line.replace /\s+/g, ' '
|
||||||
|
# replace all whitespaces inside the string with one space, WARNING: the whitespaces in string will be replace too!
|
||||||
|
line = line.replace /\s?(==|>=|<=|~=|[=><\+\*\/])\s?/g, ' $1 '
|
||||||
|
# add whitespace around the operator
|
||||||
|
line = line.replace /([^=|\-|(|\s])\s?\-\s?([^\-|\[])/g, '$1 - $2'
|
||||||
|
# just format minus, not for -- or negative number or commentary.
|
||||||
|
line = line.replace /,([^\s])/g, ', $1'
|
||||||
|
# adjust ','
|
||||||
|
line = line.replace /\s+,/g, ','
|
||||||
|
# recover the whitespaces in string.
|
||||||
|
line = line.replace /(['"])[^\1]*?\1/g, ->
|
||||||
|
string_list.shift()
|
||||||
|
if muli_string and muli_string[0]
|
||||||
|
line = line.replace /\[(=*)\[([^\]\1\]]*)/, muli_string[0]
|
||||||
|
if comment and comment[0]
|
||||||
|
line = line.replace /\-{2}[^\[].*$/, comment[0]
|
||||||
|
line
|
||||||
|
|
||||||
|
DEFAULT_WARN_FN = (msg) ->
|
||||||
|
console.log('WARNING:', msg)
|
||||||
|
|
||||||
|
module.exports = (str, indent, warn_fn) ->
|
||||||
|
indent = indent or DEFAULT_INDENT
|
||||||
|
warn_fn = if typeof warn_fn == 'function' then warn_fn else DEFAULT_WARN_FN
|
||||||
|
indent = ' '.repeat(indent) if Number.isInteger(indent)
|
||||||
|
$currIndent = 0
|
||||||
|
$nextIndent = 0
|
||||||
|
$prevLength = 0
|
||||||
|
$extIndent = 0
|
||||||
|
$lastIndent = 0
|
||||||
|
$template = 0
|
||||||
|
new_code = str.split(/\r?\n/g).map (line, line_number) ->
|
||||||
|
$template_flag = false
|
||||||
|
if $template
|
||||||
|
res2 = line.match(/\](=*)\]/)
|
||||||
|
if res2 and $template == res2[1].length + 1
|
||||||
|
$template_flag = true
|
||||||
|
if $template and !/]=*]$/.test(line)
|
||||||
|
arr = line.split(/\]=*\]/, 2)
|
||||||
|
comment = arr[0]
|
||||||
|
code = arr[1]
|
||||||
|
line = comment + ']' + '='.repeat($template - 1) + ']' + adjust_space(code)
|
||||||
|
$template = 0
|
||||||
|
$template = 0
|
||||||
|
else
|
||||||
|
return line
|
||||||
|
res1 = line.match(/\[(=*)\[/)
|
||||||
|
if res1
|
||||||
|
$template = res1[1].length + 1
|
||||||
|
if !$template_flag
|
||||||
|
line = line.trim()
|
||||||
|
# remote all spaces on both ends
|
||||||
|
line = adjust_space(line)
|
||||||
|
if !line.length
|
||||||
|
return ''
|
||||||
|
raw_line = line
|
||||||
|
line = line.replace(/(['"])[^\1]*?\1/, '')
|
||||||
|
# remove all quoted fragments for proper bracket processing
|
||||||
|
line = line.replace(/\s*--.+/, '')
|
||||||
|
# remove all comments; this ignores long bracket style comments
|
||||||
|
if /^((local )?function|repeat|while)\b/.test(line) and !/\bend\s*[\),;]*$/.test(line) or /\b(then|do)$/.test(line) and !/^elseif\b/.test(line) or /^if\b/.test(line) and /\bthen\b/.test(line) and !/\bend$/.test(line) or /\bfunction ?(?:\w+ )?\([^\)]*\)$/.test(line) and !/\bend$/.test(line)
|
||||||
|
$nextIndent = $currIndent + 1
|
||||||
|
else if /^until\b/.test(line) or /^end\s*[\),;]*$/.test(line) or /^end\s*\)\s*\.\./.test(line) or /^else(if)?\b/.test(line) and /\bend$/.test(line)
|
||||||
|
$nextIndent = --$currIndent
|
||||||
|
else if /^else\b/.test(line) or /^elseif\b/.test(line)
|
||||||
|
$nextIndent = $currIndent
|
||||||
|
$currIndent = $currIndent - 1
|
||||||
|
$brackets = (line.match(/\(/g) or []).length - ((line.match(/\)/g) or []).length)
|
||||||
|
# capture unbalanced brackets
|
||||||
|
$curly = (line.match(/\{/g) or []).length - ((line.match(/\}/g) or []).length)
|
||||||
|
# capture unbalanced curly brackets
|
||||||
|
# close (curly) brackets if needed
|
||||||
|
if $curly < 0
|
||||||
|
$currIndent += $curly
|
||||||
|
if $brackets < 0
|
||||||
|
$currIndent += $brackets
|
||||||
|
$nextIndent += $brackets + $curly
|
||||||
|
# console.log({last: $lastIndent, curr: $currIndent, next: $nextIndent, ext: $extIndent})
|
||||||
|
if $currIndent - $lastIndent > 1
|
||||||
|
$extIndent += $nextIndent - $lastIndent - 1
|
||||||
|
$nextIndent = $currIndent = 1 + $lastIndent
|
||||||
|
if $currIndent - $lastIndent < -1 and $extIndent > 0
|
||||||
|
$extIndent += $currIndent - $lastIndent + 1
|
||||||
|
$currIndent = -1 + $lastIndent
|
||||||
|
if $nextIndent < $currIndent
|
||||||
|
$nextIndent = $currIndent
|
||||||
|
# console.log({last: $lastIndent, curr: $currIndent, next: $nextIndent, ext: $extIndent})
|
||||||
|
warn_fn """negative indentation at line #{line_number}: #{raw_line}""" if $currIndent < 0
|
||||||
|
new_line = (if raw_line.length and $currIndent > 0 and !$template_flag then indent.repeat($currIndent) else '') + raw_line
|
||||||
|
$useful = $prevLength > 0 or raw_line.length > 0
|
||||||
|
$lastIndent = $currIndent
|
||||||
|
$currIndent = $nextIndent
|
||||||
|
$prevLength = raw_line.length
|
||||||
|
new_line or undefined
|
||||||
|
|
||||||
|
warn_fn 'positive indentation at the end' if $currIndent > 0
|
||||||
|
new_code.join '\n'
|
|
@ -1,57 +0,0 @@
|
||||||
# Copyright 2011 Paul Kulchenko
|
|
||||||
# Credits: http://notebook.kulchenko.com/programming/lua-beautifier-in-55-lines-of-perl
|
|
||||||
use strict;
|
|
||||||
use warnings;
|
|
||||||
|
|
||||||
use constant INDENT => ' ';
|
|
||||||
my($currIndent, $nextIndent, $prevLength) = (0, 0, 0);
|
|
||||||
|
|
||||||
while (<>) {
|
|
||||||
chomp;
|
|
||||||
s/^\s+|\s+$//g; # remote all spaces on both ends
|
|
||||||
s/\s+/ /g; # replace all whitespaces inside the string with one space
|
|
||||||
|
|
||||||
my $orig = $_;
|
|
||||||
|
|
||||||
s/(['"])[^\1]*?\1//g; # remove all quoted fragments for proper bracket processing
|
|
||||||
s/\s*--.+//; # remove all comments; this ignores long bracket style comments
|
|
||||||
|
|
||||||
# open a level; increase next indentation; don't change current one
|
|
||||||
if (/^((local )?function|repeat|while)\b/ && !/\bend\s*[\),;]*$/
|
|
||||||
|| /\b(then|do)$/ && !/^elseif\b/ # only open on 'then' if there is no 'elseif'
|
|
||||||
|| /^if\b/ && /\bthen\b/ && !/\bend$/ # only open on 'if' if there is no 'end' at the end
|
|
||||||
|| /\bfunction\s*\([^\)]*\)$/) {
|
|
||||||
$nextIndent = $currIndent + 1;
|
|
||||||
}
|
|
||||||
# close the level; change both current and next indentation
|
|
||||||
elsif (/^until\b/
|
|
||||||
|| /^end\s*[\),;]*$/
|
|
||||||
|| /^end\s*\)\s*\.\./ # this is a special case of 'end).."some string"'
|
|
||||||
|| /^else(if)?\b/ && /\bend$/) {
|
|
||||||
$nextIndent = $currIndent = $currIndent - 1;
|
|
||||||
}
|
|
||||||
# keep the level; decrease the current indentation; keep the next one
|
|
||||||
elsif (/^else\b/
|
|
||||||
|| /^elseif\b/) {
|
|
||||||
($nextIndent, $currIndent) = ($currIndent, $currIndent-1);
|
|
||||||
}
|
|
||||||
|
|
||||||
my $brackets = y/(// - y/)//; # capture unbalanced brackets
|
|
||||||
my $curly = y/{// - y/}//; # capture unbalanced curly brackets
|
|
||||||
|
|
||||||
# close (curly) brackets if needed
|
|
||||||
$currIndent += $curly if $curly < 0 && /^\}/;
|
|
||||||
$currIndent += $brackets if $brackets < 0 && /^\)/;
|
|
||||||
|
|
||||||
warn "WARNING: negative indentation at line $.: $orig\n" if $currIndent < 0;
|
|
||||||
|
|
||||||
print((length($orig) ? (INDENT x $currIndent) : ''), $orig, "\n")
|
|
||||||
if $prevLength > 0 || length($orig) > 0; # this is to collapse empty lines
|
|
||||||
|
|
||||||
$nextIndent += $brackets + $curly;
|
|
||||||
|
|
||||||
$currIndent = $nextIndent;
|
|
||||||
$prevLength = length($orig);
|
|
||||||
}
|
|
||||||
|
|
||||||
warn "WARNING: positive indentation at the end\n" if $nextIndent > 0;
|
|
|
@ -4,19 +4,20 @@ path = require("path")
|
||||||
|
|
||||||
"use strict"
|
"use strict"
|
||||||
Beautifier = require('../beautifier')
|
Beautifier = require('../beautifier')
|
||||||
|
format = require './beautifier'
|
||||||
|
|
||||||
module.exports = class Lua extends Beautifier
|
module.exports = class Lua extends Beautifier
|
||||||
name: "Lua beautifier"
|
name: "Lua beautifier"
|
||||||
link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/lua-beautifier/beautifier.pl"
|
link: "https://www.perl.org/"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Lua: true
|
Lua: true
|
||||||
}
|
}
|
||||||
|
|
||||||
beautify: (text, language, options) ->
|
beautify: (text, language, options) ->
|
||||||
lua_beautifier = path.resolve(__dirname, "beautifier.pl")
|
new @Promise (resolve, reject) ->
|
||||||
@run("perl", [
|
try
|
||||||
lua_beautifier,
|
resolve format text, options.indent_char.repeat options.indent_size
|
||||||
'<',
|
catch error
|
||||||
@tempFile("input", text)
|
reject error
|
||||||
])
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class OCPIndent extends Beautifier
|
module.exports = class OCPIndent extends Beautifier
|
||||||
name: "ocp-indent"
|
name: "ocp-indent"
|
||||||
link: "https://www.typerex.org/ocp-indent.html"
|
link: "https://www.typerex.org/ocp-indent.html"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
OCaml: true
|
OCaml: true
|
||||||
|
|
|
@ -7,6 +7,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class PerlTidy extends Beautifier
|
module.exports = class PerlTidy extends Beautifier
|
||||||
name: "Perltidy"
|
name: "Perltidy"
|
||||||
link: "http://perltidy.sourceforge.net/"
|
link: "http://perltidy.sourceforge.net/"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Perl: true
|
Perl: true
|
||||||
|
|
|
@ -10,6 +10,7 @@ module.exports = class PHPCSFixer extends Beautifier
|
||||||
|
|
||||||
name: 'PHP-CS-Fixer'
|
name: 'PHP-CS-Fixer'
|
||||||
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
|
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options:
|
options:
|
||||||
PHP: true
|
PHP: true
|
||||||
|
@ -18,63 +19,55 @@ module.exports = class PHPCSFixer extends Beautifier
|
||||||
@debug('php-cs-fixer', options)
|
@debug('php-cs-fixer', options)
|
||||||
|
|
||||||
configFile = if context? and context.filePath? then @findFile(path.dirname(context.filePath), '.php_cs')
|
configFile = if context? and context.filePath? then @findFile(path.dirname(context.filePath), '.php_cs')
|
||||||
|
phpCsFixerOptions = [
|
||||||
|
"fix"
|
||||||
|
"--level=#{options.level}" if options.level
|
||||||
|
"--fixers=#{options.fixers}" if options.fixers
|
||||||
|
"--config-file=#{configFile}" if configFile
|
||||||
|
]
|
||||||
|
runOptions = {
|
||||||
|
ignoreReturnCode: true
|
||||||
|
help: {
|
||||||
|
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if @isWindows
|
# Find php-cs-fixer.phar script
|
||||||
# Find php-cs-fixer.phar script
|
@Promise.all([
|
||||||
@Promise.all([
|
@which(options.cs_fixer_path) if options.cs_fixer_path
|
||||||
@which(options.cs_fixer_path) if options.cs_fixer_path
|
@which('php-cs-fixer')
|
||||||
@which('php-cs-fixer')
|
]).then((paths) =>
|
||||||
]).then((paths) =>
|
@debug('php-cs-fixer paths', paths)
|
||||||
@debug('php-cs-fixer paths', paths)
|
_ = require 'lodash'
|
||||||
_ = require 'lodash'
|
# Get first valid, absolute path
|
||||||
# Get first valid, absolute path
|
phpCSFixerPath = _.find(paths, (p) -> p and path.isAbsolute(p) )
|
||||||
phpCSFixerPath = _.find(paths, (p) -> p and path.isAbsolute(p) )
|
@verbose('phpCSFixerPath', phpCSFixerPath)
|
||||||
@verbose('phpCSFixerPath', phpCSFixerPath)
|
@debug('phpCSFixerPath', phpCSFixerPath, paths)
|
||||||
@debug('phpCSFixerPath', phpCSFixerPath, paths)
|
|
||||||
# Check if PHP-CS-Fixer path was found
|
# Check if PHP-CS-Fixer path was found
|
||||||
if phpCSFixerPath?
|
if phpCSFixerPath?
|
||||||
# Found PHP-CS-Fixer path
|
# Found PHP-CS-Fixer path
|
||||||
@run("php", [
|
tempFile = @tempFile("temp", text)
|
||||||
phpCSFixerPath
|
|
||||||
"fix"
|
if @isWindows
|
||||||
"--level=#{options.level}" if options.level
|
@run("php", [phpCSFixerPath, phpCsFixerOptions, tempFile], runOptions)
|
||||||
"--fixers=#{options.fixers}" if options.fixers
|
|
||||||
"--config-file=#{configFile}" if configFile
|
|
||||||
tempFile = @tempFile("temp", text)
|
|
||||||
], {
|
|
||||||
ignoreReturnCode: true
|
|
||||||
help: {
|
|
||||||
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then(=>
|
.then(=>
|
||||||
@readFile(tempFile)
|
@readFile(tempFile)
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
@verbose('php-cs-fixer not found!')
|
@run(phpCSFixerPath, [phpCsFixerOptions, tempFile], runOptions)
|
||||||
# Could not find PHP-CS-Fixer path
|
.then(=>
|
||||||
@Promise.reject(@commandNotFoundError(
|
@readFile(tempFile)
|
||||||
'php-cs-fixer'
|
)
|
||||||
{
|
else
|
||||||
|
@verbose('php-cs-fixer not found!')
|
||||||
|
# Could not find PHP-CS-Fixer path
|
||||||
|
@Promise.reject(@commandNotFoundError(
|
||||||
|
'php-cs-fixer'
|
||||||
|
{
|
||||||
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
|
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
|
||||||
program: "php-cs-fixer.phar"
|
program: "php-cs-fixer.phar"
|
||||||
pathOption: "PHP - CS Fixer Path"
|
pathOption: "PHP - CS Fixer Path"
|
||||||
})
|
})
|
||||||
)
|
|
||||||
)
|
|
||||||
else
|
|
||||||
@run("php-cs-fixer", [
|
|
||||||
"fix"
|
|
||||||
"--level=#{options.level}" if options.level
|
|
||||||
"--fixers=#{options.fixers}" if options.fixers
|
|
||||||
"--config-file=#{configFile}" if configFile
|
|
||||||
tempFile = @tempFile("temp", text)
|
|
||||||
], {
|
|
||||||
ignoreReturnCode: true
|
|
||||||
help: {
|
|
||||||
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then(=>
|
|
||||||
@readFile(tempFile)
|
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
|
@ -8,6 +8,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class PHPCBF extends Beautifier
|
module.exports = class PHPCBF extends Beautifier
|
||||||
name: "PHPCBF"
|
name: "PHPCBF"
|
||||||
link: "http://php.net/manual/en/install.php"
|
link: "http://php.net/manual/en/install.php"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
_:
|
_:
|
||||||
|
|
|
@ -49,6 +49,7 @@ module.exports = class PrettyDiff extends Beautifier
|
||||||
EJS: true
|
EJS: true
|
||||||
HTML: true
|
HTML: true
|
||||||
Handlebars: true
|
Handlebars: true
|
||||||
|
Mustache: true
|
||||||
Nunjucks: true
|
Nunjucks: true
|
||||||
XML: true
|
XML: true
|
||||||
SVG: true
|
SVG: true
|
||||||
|
|
|
@ -8,6 +8,7 @@ module.exports = class PuppetFix extends Beautifier
|
||||||
# this is what displays as your Default Beautifier in Language Config
|
# this is what displays as your Default Beautifier in Language Config
|
||||||
name: "puppet-lint"
|
name: "puppet-lint"
|
||||||
link: "http://puppet-lint.com/"
|
link: "http://puppet-lint.com/"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Puppet: true
|
Puppet: true
|
||||||
|
|
|
@ -8,6 +8,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class Rubocop extends Beautifier
|
module.exports = class Rubocop extends Beautifier
|
||||||
name: "Rubocop"
|
name: "Rubocop"
|
||||||
link: "https://github.com/bbatsov/rubocop"
|
link: "https://github.com/bbatsov/rubocop"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Ruby:
|
Ruby:
|
||||||
|
|
|
@ -8,6 +8,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class RubyBeautify extends Beautifier
|
module.exports = class RubyBeautify extends Beautifier
|
||||||
name: "Ruby Beautify"
|
name: "Ruby Beautify"
|
||||||
link: "https://github.com/erniebrodeur/ruby-beautify"
|
link: "https://github.com/erniebrodeur/ruby-beautify"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Ruby:
|
Ruby:
|
||||||
|
|
|
@ -11,6 +11,7 @@ versionCheckState = false
|
||||||
module.exports = class Rustfmt extends Beautifier
|
module.exports = class Rustfmt extends Beautifier
|
||||||
name: "rustfmt"
|
name: "rustfmt"
|
||||||
link: "https://github.com/nrc/rustfmt"
|
link: "https://github.com/nrc/rustfmt"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Rust: true
|
Rust: true
|
||||||
|
|
|
@ -4,6 +4,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class SassConvert extends Beautifier
|
module.exports = class SassConvert extends Beautifier
|
||||||
name: "SassConvert"
|
name: "SassConvert"
|
||||||
link: "http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax"
|
link: "http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options:
|
options:
|
||||||
# TODO: Add support for options
|
# TODO: Add support for options
|
||||||
|
|
|
@ -8,6 +8,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class Sqlformat extends Beautifier
|
module.exports = class Sqlformat extends Beautifier
|
||||||
name: "sqlformat"
|
name: "sqlformat"
|
||||||
link: "https://github.com/andialbrecht/sqlparse"
|
link: "https://github.com/andialbrecht/sqlparse"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
SQL: true
|
SQL: true
|
||||||
|
|
|
@ -8,6 +8,7 @@ Beautifier = require('./beautifier')
|
||||||
module.exports = class StylishHaskell extends Beautifier
|
module.exports = class StylishHaskell extends Beautifier
|
||||||
name: "stylish-haskell"
|
name: "stylish-haskell"
|
||||||
link: "https://github.com/jaspervdj/stylish-haskell"
|
link: "https://github.com/jaspervdj/stylish-haskell"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Haskell: true
|
Haskell: true
|
||||||
|
|
|
@ -11,6 +11,8 @@ _ = require('lodash')
|
||||||
module.exports = class Uncrustify extends Beautifier
|
module.exports = class Uncrustify extends Beautifier
|
||||||
name: "Uncrustify"
|
name: "Uncrustify"
|
||||||
link: "https://github.com/uncrustify/uncrustify"
|
link: "https://github.com/uncrustify/uncrustify"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Apex: true
|
Apex: true
|
||||||
C: true
|
C: true
|
||||||
|
|
|
@ -5,6 +5,7 @@ _ = require('lodash')
|
||||||
|
|
||||||
module.exports = class VueBeautifier extends Beautifier
|
module.exports = class VueBeautifier extends Beautifier
|
||||||
name: "Vue Beautifier"
|
name: "Vue Beautifier"
|
||||||
|
link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee"
|
||||||
|
|
||||||
options:
|
options:
|
||||||
Vue: true
|
Vue: true
|
||||||
|
|
|
@ -9,6 +9,7 @@ module.exports = class Yapf extends Beautifier
|
||||||
|
|
||||||
name: "yapf"
|
name: "yapf"
|
||||||
link: "https://github.com/google/yapf"
|
link: "https://github.com/google/yapf"
|
||||||
|
isPreInstalled: false
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
Python: false
|
Python: false
|
||||||
|
|
|
@ -32,7 +32,7 @@ getScrollTop = (editor) ->
|
||||||
view?.getScrollTop()
|
view?.getScrollTop()
|
||||||
setScrollTop = (editor, value) ->
|
setScrollTop = (editor, value) ->
|
||||||
view = atom.views.getView(editor)
|
view = atom.views.getView(editor)
|
||||||
view?.setScrollTop value
|
view?.component?.setScrollTop value
|
||||||
|
|
||||||
getCursors = (editor) ->
|
getCursors = (editor) ->
|
||||||
cursors = editor.getCursors()
|
cursors = editor.getCursors()
|
||||||
|
@ -284,8 +284,6 @@ debug = () ->
|
||||||
try
|
try
|
||||||
open = require("open")
|
open = require("open")
|
||||||
fs ?= require "fs"
|
fs ?= require "fs"
|
||||||
GitHubApi = require("github")
|
|
||||||
github = new GitHubApi()
|
|
||||||
|
|
||||||
plugin.checkUnsupportedOptions()
|
plugin.checkUnsupportedOptions()
|
||||||
|
|
||||||
|
@ -302,11 +300,7 @@ debug = () ->
|
||||||
if not editor?
|
if not editor?
|
||||||
return confirm("Active Editor not found.\n" +
|
return confirm("Active Editor not found.\n" +
|
||||||
"Please select a Text Editor first to beautify.")
|
"Please select a Text Editor first to beautify.")
|
||||||
return unless confirm('Are you ready to debug Atom Beautify?\n\n'+
|
return unless confirm('Are you ready to debug Atom Beautify?')
|
||||||
'Warning: This will create an anonymous Gist on GitHub (publically accessible and cannot be easily deleted) '+
|
|
||||||
'containing the contents of your active Text Editor.\n'+
|
|
||||||
'Be sure to delete any private text from your active Text Editor before continuing '+
|
|
||||||
'to ensure you are not sharing undesirable private information.')
|
|
||||||
debugInfo = ""
|
debugInfo = ""
|
||||||
headers = []
|
headers = []
|
||||||
tocEl = "<TABLEOFCONTENTS/>"
|
tocEl = "<TABLEOFCONTENTS/>"
|
||||||
|
@ -473,41 +467,21 @@ debug = () ->
|
||||||
# Replace TABLEOFCONTENTS
|
# Replace TABLEOFCONTENTS
|
||||||
debugInfo = debugInfo.replace(tocEl, toc)
|
debugInfo = debugInfo.replace(tocEl, toc)
|
||||||
|
|
||||||
# Save to clipboard
|
# Save to new TextEditor
|
||||||
# atom.clipboard.write(debugInfo)
|
atom.workspace.open()
|
||||||
github.gists.create({
|
.then((editor) ->
|
||||||
files: {
|
editor.setText(debugInfo)
|
||||||
"debug.md": {
|
confirm("""Please login to GitHub and create a Gist named \"debug.md\" (Markdown file) with your debugging information.
|
||||||
"content": debugInfo
|
Then add a link to your Gist in your GitHub Issue.
|
||||||
}
|
Thank you!
|
||||||
},
|
|
||||||
public: true,
|
|
||||||
description: "Atom-Beautify debugging information"
|
|
||||||
}, (err, res) ->
|
|
||||||
# console.log(err, res)
|
|
||||||
if err
|
|
||||||
confirm("An error occurred when creating the Gist: "+err)
|
|
||||||
else
|
|
||||||
gistUrl = res.html_url
|
|
||||||
# Create Gist
|
|
||||||
open(gistUrl)
|
|
||||||
confirm("Your Atom Beautify debugging information can be found in the public Gist:\n#{res.html_url}\n\n" +
|
|
||||||
# 'You can now paste this into an Issue you are reporting here\n' +
|
|
||||||
# 'https://github.com/Glavin001/atom-beautify/issues/\n\n' +
|
|
||||||
# 'Please follow the contribution guidelines found at\n' +
|
|
||||||
# 'https://github.com/Glavin001/atom-beautify/blob/master/CONTRIBUTING.md\n\n' +
|
|
||||||
'Warning: Be sure to look over the debug info before you send it '+
|
|
||||||
'to ensure you are not sharing undesirable private information.\n\n'+
|
|
||||||
'If you want to delete this anonymous Gist read\n'+
|
|
||||||
'https://help.github.com/articles/deleting-an-anonymous-gist/'
|
|
||||||
)
|
|
||||||
# Create GitHub Issue
|
|
||||||
return unless confirm("Would you like to create a new Issue on GitHub now?")
|
|
||||||
issueTemplate = fs.readFileSync(path.resolve(__dirname, "../ISSUE_TEMPLATE.md")).toString()
|
|
||||||
body = issueTemplate.replace("<INSERT GIST HERE>", gistUrl)#.replace("<INSERT CODE HERE>", text)
|
|
||||||
open("https://github.com/Glavin001/atom-beautify/issues/new?body=#{encodeURIComponent(body)}")
|
|
||||||
|
|
||||||
)
|
Gist: https://gist.github.com/
|
||||||
|
GitHub Issues: https://github.com/Glavin001/atom-beautify/issues
|
||||||
|
""")
|
||||||
|
)
|
||||||
|
.catch((error) ->
|
||||||
|
confirm("An error occurred when creating the Gist: "+error.message)
|
||||||
|
)
|
||||||
try
|
try
|
||||||
beautifier.beautify(text, allOptions, grammarName, filePath)
|
beautifier.beautify(text, allOptions, grammarName, filePath)
|
||||||
.then(cb)
|
.then(cb)
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
scope = ['source.sh', 'source.bash']
|
||||||
|
tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 2
|
||||||
|
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
|
||||||
|
defaultIndentSize = (if softTabs then tabLength else 1)
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "Bash"
|
||||||
|
namespace: "bash"
|
||||||
|
|
||||||
|
###
|
||||||
|
Supported Grammars
|
||||||
|
###
|
||||||
|
grammars: [
|
||||||
|
"Shell Script"
|
||||||
|
]
|
||||||
|
|
||||||
|
defaultBeautifier: "beautysh"
|
||||||
|
|
||||||
|
###
|
||||||
|
Supported extensions
|
||||||
|
###
|
||||||
|
extensions: [
|
||||||
|
"bash"
|
||||||
|
"sh"
|
||||||
|
]
|
||||||
|
|
||||||
|
options:
|
||||||
|
indent_size:
|
||||||
|
type: 'integer'
|
||||||
|
default: defaultIndentSize
|
||||||
|
minimum: 0
|
||||||
|
description: "Indentation size/length"
|
||||||
|
|
||||||
|
}
|
|
@ -20,10 +20,12 @@ module.exports = {
|
||||||
"cpp"
|
"cpp"
|
||||||
"cxx"
|
"cxx"
|
||||||
"C"
|
"C"
|
||||||
|
"cu"
|
||||||
"c++"
|
"c++"
|
||||||
"hpp"
|
"hpp"
|
||||||
"hxx"
|
"hxx"
|
||||||
"h++"
|
"h++"
|
||||||
|
"cuh"
|
||||||
]
|
]
|
||||||
|
|
||||||
options:
|
options:
|
||||||
|
|
|
@ -9,6 +9,7 @@ module.exports = {
|
||||||
Supported Grammars
|
Supported Grammars
|
||||||
###
|
###
|
||||||
grammars: [
|
grammars: [
|
||||||
|
"EJS"
|
||||||
"JavaScript Template"
|
"JavaScript Template"
|
||||||
"HTML (Angular)"
|
"HTML (Angular)"
|
||||||
]
|
]
|
||||||
|
@ -16,7 +17,9 @@ module.exports = {
|
||||||
###
|
###
|
||||||
Supported extensions
|
Supported extensions
|
||||||
###
|
###
|
||||||
extensions: []
|
extensions: [
|
||||||
|
"ejs"
|
||||||
|
]
|
||||||
|
|
||||||
options: []
|
options: []
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,8 @@ module.exports = {
|
||||||
extensions: [
|
extensions: [
|
||||||
"f90"
|
"f90"
|
||||||
"F90"
|
"F90"
|
||||||
|
"f95"
|
||||||
|
"F95"
|
||||||
]
|
]
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "GLSL"
|
||||||
|
namespace: "glsl"
|
||||||
|
|
||||||
|
###
|
||||||
|
Supported Grammars
|
||||||
|
###
|
||||||
|
grammars: [
|
||||||
|
"C"
|
||||||
|
"opencl"
|
||||||
|
"GLSL"
|
||||||
|
]
|
||||||
|
|
||||||
|
###
|
||||||
|
Supported extensions
|
||||||
|
###
|
||||||
|
extensions: [
|
||||||
|
"vert"
|
||||||
|
"frag"
|
||||||
|
]
|
||||||
|
|
||||||
|
options:
|
||||||
|
configPath:
|
||||||
|
type: 'string'
|
||||||
|
default: ""
|
||||||
|
description: "Path to clang-format config file. i.e. clang-format.cfg"
|
||||||
|
|
||||||
|
}
|
|
@ -56,8 +56,8 @@ module.exports = {
|
||||||
wrap_attributes:
|
wrap_attributes:
|
||||||
type: 'string'
|
type: 'string'
|
||||||
default: "auto"
|
default: "auto"
|
||||||
enum: ["auto", "force"]
|
enum: ["auto", "force", "force-aligned", "force-expand-multiline"]
|
||||||
description: "Wrap attributes to new lines [auto|force]"
|
description: "Wrap attributes to new lines [auto|force|force-aligned|force-expand-multiline]"
|
||||||
wrap_attributes_indent_size:
|
wrap_attributes_indent_size:
|
||||||
type: 'integer'
|
type: 'integer'
|
||||||
default: defaultIndentSize
|
default: defaultIndentSize
|
||||||
|
|
|
@ -14,6 +14,7 @@ module.exports = class Languages
|
||||||
languageNames: [
|
languageNames: [
|
||||||
"apex"
|
"apex"
|
||||||
"arduino"
|
"arduino"
|
||||||
|
"bash"
|
||||||
"c-sharp"
|
"c-sharp"
|
||||||
"c"
|
"c"
|
||||||
"clojure"
|
"clojure"
|
||||||
|
@ -29,6 +30,7 @@ module.exports = class Languages
|
||||||
"erb"
|
"erb"
|
||||||
"erlang"
|
"erlang"
|
||||||
"gherkin"
|
"gherkin"
|
||||||
|
"glsl"
|
||||||
"go"
|
"go"
|
||||||
"fortran"
|
"fortran"
|
||||||
"handlebars"
|
"handlebars"
|
||||||
|
|
|
@ -11,6 +11,7 @@ module.exports = {
|
||||||
"JSX"
|
"JSX"
|
||||||
"JavaScript (JSX)"
|
"JavaScript (JSX)"
|
||||||
"Babel ES6 JavaScript"
|
"Babel ES6 JavaScript"
|
||||||
|
"JavaScript with JSX"
|
||||||
]
|
]
|
||||||
|
|
||||||
###
|
###
|
||||||
|
@ -21,4 +22,12 @@ module.exports = {
|
||||||
"js"
|
"js"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
defaultBeautifier: "Pretty Diff"
|
||||||
|
|
||||||
|
options:
|
||||||
|
e4x:
|
||||||
|
type: 'boolean'
|
||||||
|
default: true
|
||||||
|
description: "Support e4x/jsx syntax"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
console.log('loading nunjucks')
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,8 @@ module.exports = {
|
||||||
"inc"
|
"inc"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
defaultBeautifier: "PHP-CS-Fixer"
|
||||||
|
|
||||||
options:
|
options:
|
||||||
cs_fixer_path:
|
cs_fixer_path:
|
||||||
title: "PHP-CS-Fixer Path"
|
title: "PHP-CS-Fixer Path"
|
||||||
|
|
|
@ -2,7 +2,7 @@ module.exports = {
|
||||||
|
|
||||||
name: "Vue"
|
name: "Vue"
|
||||||
namespace: "vue"
|
namespace: "vue"
|
||||||
fallback: ['html']
|
fallback: ['html', 'js']
|
||||||
|
|
||||||
###
|
###
|
||||||
Supported Grammars
|
Supported Grammars
|
||||||
|
|
|
@ -16,7 +16,7 @@ module.exports = {
|
||||||
Supported extensions
|
Supported extensions
|
||||||
###
|
###
|
||||||
extensions: [
|
extensions: [
|
||||||
'sld', 'xml', 'xhtml', 'xsd', 'xsl', 'jsp', 'gsp'
|
'sld', 'xml', 'xhtml', 'xsd', 'xsl', 'jsp', 'gsp', 'plist', 'recipe'
|
||||||
]
|
]
|
||||||
|
|
||||||
defaultBeautifier: "Pretty Diff"
|
defaultBeautifier: "Pretty Diff"
|
||||||
|
|
Loading…
Reference in New Issue