Install vim-autoformat plugin
https://github.com/Chiel92/vim-autoformat

install
sudo  apt-get install python-autopep8 pep8 node nodejs

sudo npm install -g js-beautify

try:

1. create a vim file and put insde file:

:Autoformat python
:wq

save and name it: indent.vim

2 now:
vim -s indent.vim my_python_file.py

Now, for python works fine, but for html, I not yet test.


2014-12-13 22:23 GMT-04:30 Abraham Varricatt <abraham.varric...@googlemail.com>:
> Hello,
>
> Is there any command-line based tool which would let one auto-format Django
> template files? Ideally, the tool should also be used to format HTML, CSS
> and .JS files too.
>
> I've recently inherited a bad-looking code base and want to clean it up.
> Have heard of the PEP8 autoformatter, but that just works for Python files,
> right?
>
> -Abraham V.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6ce7098d-5ab0-4223-8488-35f6688adc9f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
José Luis Regalado
bashman
Linux User nº 280381
WhatsApp / Telegram  +58 416 1705119

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG7DY1iJ6%3DXf1QZ2JE8xyO2-QQx3R944bzHCNoME2CqvEXO2fQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to