parent
e8e2704daa
commit
ffc0937d7b
@ -77,8 +77,9 @@ And here the link to its page on the python website: http://pypi.python.org/pypi
|
||||
|
||||
* `js-beautify` for __Javascript__ and __JSON__.
|
||||
It can be installed by running `npm install -g js-beautify`.
|
||||
Note that the *python version is not supported by default* and `nodejs` is needed for this to work.
|
||||
If you want (or need) to use the python version, you have to specify the format program definition manually in your `.vimrc`. Example:
|
||||
Note that `nodejs` is needed for this to work.
|
||||
The *python version is not supported by default* because it needs different arguments.
|
||||
If you want (or need) to use the python version, you manually have to specify a `formatprg` definition that is valid for the python version in your `.vimrc`. Example:
|
||||
```vim
|
||||
let g:formatprg_args_expr_javascript = '"-".(&expandtab ? "s ".&shiftwidth : "t").(&textwidth ? " -w ".&textwidth : "")." -"'
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user