Re: django template auto format tool?

2014-12-17 Thread Abraham Varricatt
Ha, ha. :D

I'm no expert. I need the tool myself to learn a lot of this stuff.

-Abraham V.


On Wed, Dec 17, 2014 at 7:15 PM, Collin Anderson 
wrote:
>
> Hi Abraham,
>
> If you made a took, I'd use it. :)
>
> Collin
>
> On Saturday, December 13, 2014 9:53:56 PM UTC-5, Abraham Varricatt wrote:
>>
>> 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 a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/FOnYD1XMWRo/unsubscribe.
> To unsubscribe from this group and all its topics, 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/c1676086-71c3-4292-a94a-09aded58685b%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADeSw2yA3bO5cSEskDRYTOpNKWOb_km-mKYskwdBtS11Mz%3DP7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django template auto format tool?

2014-12-17 Thread Collin Anderson
Hi Abraham,

If you made a took, I'd use it. :)

Collin

On Saturday, December 13, 2014 9:53:56 PM UTC-5, Abraham Varricatt wrote:
>
> 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/c1676086-71c3-4292-a94a-09aded58685b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django template auto format tool?

2014-12-15 Thread Abraham Varricatt
@José Luis Regalado,

The vim idea is interesting, but I don't think too many developers can be 
convinced to open a file in a different editor just to format it. 

@ somecallitblues ,

Same reasoning. I'm using Pycharm myself, but for a mixed-editor/IDE team, 
I need a different tool to standardize on. 

And speaking of Pycharm, it acts really weird for some Django templates. It 
doesn't format multi-line comments. Which, might be for the best, but 
another issue is that the editor still highlights the code within! It's 
intelligent enough to recognize a comment, but feels the need to color it 
anyway?!?

-Abraham V.



On Monday, 15 December 2014 03:24:30 UTC+5:30, somecallitblues wrote:
>
> PyCharm ide does a great job for all those file types.
> On 14/12/2014 2:00 pm, "Abraham Varricatt"  > wrote:
>
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@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.
>>
>

-- 
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/6216fe5f-1bb5-4b10-8189-95429984ec42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django template auto format tool?

2014-12-14 Thread Mario Gudelj
PyCharm ide does a great job for all those file types.
On 14/12/2014 2:00 pm, "Abraham Varricatt" 
wrote:

> 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.
>

-- 
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/CAHqTbjn%2BZ2rwmRd9qJy%3D_z_6yN4OiSF-oLuM4JRALw3iWYrkug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django template auto format tool?

2014-12-14 Thread Jose Regalado
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 :
> 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.


django template auto format tool?

2014-12-13 Thread Abraham Varricatt
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.