t push origin masterMerge branch 'chaucerbao-feature/add-scss-formatter'
This commit is contained in:
commit
3038a4e3b9
@ -84,6 +84,10 @@ It is shipped with `js-beautify`, which can be installed by running `npm install
|
||||
Note that `nodejs` is needed for this to work.
|
||||
Here is the link to the repository: https://github.com/einars/js-beautify.
|
||||
|
||||
* `sass-convert` for __SCSS__.
|
||||
It is shipped with `sass`, a CSS preprocessor written in Ruby, which can be installed by running `gem install sass`.
|
||||
Here is the link to the SASS homepage: http://sass-lang.com/.
|
||||
|
||||
* `tidy` for __XHTML__ and __XML__.
|
||||
It's probably in your distro's repository, so you can download it as a regular package.
|
||||
For Ubuntu type `sudo apt-get install tidy` in a terminal.
|
||||
|
@ -38,6 +38,11 @@ if !exists("g:formatprg_args_expr_css") && !exists("g:formatprg_args_css")
|
||||
let g:formatprg_args_expr_css = '"-f - -s ".&shiftwidth'
|
||||
endif
|
||||
|
||||
if !exists("g:formatprg_scss") | let g:formatprg_scss = "sass-convert" | endif
|
||||
if !exists("g:formatprg_args_expr_scss") && !exists("g:formatprg_args_scss")
|
||||
let g:formatprg_args_expr_scss = '"-F scss -T scss --indent " . (&expandtab ? &shiftwidth : "t")'
|
||||
endif
|
||||
|
||||
if !exists("g:formatprg_html") | let g:formatprg_html = "html-beautify" | endif
|
||||
if !exists("g:formatprg_args_expr_html") && !exists("g:formatprg_args_html")
|
||||
let g:formatprg_args_expr_html = '"-f - -s ".&shiftwidth'
|
||||
|
Loading…
Reference in New Issue
Block a user