Re: How to format django template code nicely with notepad++?

2011-02-23 Thread Bill Freeman
On Wed, Feb 23, 2011 at 11:58 AM, Tom Evans wrote: ... > > Aargh, we're mortal enemies - I guess Eight Megs And Constantly > Swapping is no longer an insult I can use :) The last time I used a machine with fewer than 8Mb of RAM, emacs was nowhere near that big. Besides, what are you running all

Re: How to format django template code nicely with notepad++?

2011-02-23 Thread Tom Evans
On Wed, Feb 23, 2011 at 4:15 PM, Bill Freeman wrote: > All good points. > > I would caution, however, that not every *nix production environment > has vim.  (Less and less true, but I still see them.) > > They will, however, have vi.  (And the ones that have vim typically have > vi as an alias.)  

Re: How to format django template code nicely with notepad++?

2011-02-23 Thread Bill Freeman
On Wed, Feb 23, 2011 at 4:51 AM, Tom Evans wrote: ... > It takes about a month to get up to speed with vim, about a year to > become proficient and about three years to be fully comfortable. The > longer you use vim, the faster you get using it, and the more > productive you can be compared to use

Re: How to format django template code nicely with notepad++?

2011-02-23 Thread Tom Evans
On Tue, Feb 22, 2011 at 9:42 PM, wrote: > The ssh thing, I agree. It works like magic. I'm however compelled to > believe that the time you'd spend learning VI is enough to get you already > developing django powered apps. My case study. > It takes about a month to get up to speed with vim, abou

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread delegbede
oy Sender: django-users@googlegroups.com Date: Tue, 22 Feb 2011 11:20:21 To: Reply-To: django-users@googlegroups.com Cc: mongoose Subject: Re: How to format django template code nicely with notepad++? Learning VI is good for you and it makes you fast. Learning curve is steep, I agree, but the

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread Daniel Roseman
On Tuesday, February 22, 2011 8:31:43 PM UTC, mongoose wrote: > > want to get vim working with omnicomplete then perhaps i'll get into > it more. > > I've added this to my vimrc file > > filetype plugin on > set ofu=syntaxcomplete#Complete > > when i try > :python print 'hello' > i get this

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread Brice Leroy
egards. > Sent from my BlackBerry wireless device from MTN > > -Original Message- > From: mongoose > Sender: django-users@googlegroups.com > Date: Tue, 22 Feb 2011 06:55:21 > To: Django users > Reply-To: django-users@googlegroups.com > Subject: How to format djan

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread delegbede
ango users Reply-To: django-users@googlegroups.com Subject: How to format django template code nicely with notepad++? hi all, I'm using notepad++ a lot and really missing a code formatter (vim would be = to format). Anyone know of anyway to format my html nicely? I've tried HTML Tidy but

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread Bill Freeman
what happens if you type: python at the Cygwin shell prompt? And what does it say if you type: which python On Tue, Feb 22, 2011 at 3:31 PM, mongoose wrote: > want to get vim working with omnicomplete then perhaps i'll get into > it more. > > I've added this to my vimrc file > > filetype

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread mongoose
want to get vim working with omnicomplete then perhaps i'll get into it more. I've added this to my vimrc file filetype plugin on set ofu=syntaxcomplete#Complete when i try :python print 'hello' i get this error "Could not load library python26.dll The python library could not be loaded." first

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread Bill Freeman
Except beware of using vi/vim to edit .py files since they are normally configured to use tabs for indentation and to assume that a tab means 4 columns, whereas python (correct in the view of a really old timer) takes them to mean 8 columns. It is possible to configure at least vim to never insert

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread Brice Leroy
Learning VI is good for you and it makes you fast. Learning curve is steep, I agree, but the result is quite amazing. One other big advantage, you can easily work on any server through SSH. 2011/2/22 mongoose > I used vim for a while but the learning curve really is steep. so > steep that i'm mo

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread mongoose
I used vim for a while but the learning curve really is steep. so steep that i'm more effecient with the old style editors. perhaps i'll just do what i do in notepad++ then format it in vim. i'll keep looking around for a nice formatter though. On Feb 22, 5:20 pm, Bill Freeman wrote: > You *could

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread Bill Freeman
You *could* use Tidy, then post process with a sed script to convert the '%20's to spaces. There may be comparable Windows tool, but if you want sed, you can install Cygwin. But if you install Cygwin, you could edit with vim. Since you're editing templates, you probably have python installed. If

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread Bill Freeman
And, certainly, replacing the %20 stuff is easy in python, should you be happy with Tidy plus a post processing step. There are probably even suitable functions in the http or urllib libraries that will catch more than the %20s. You could even have the python tool run Tidy for you, so that it loo

How to format django template code nicely with notepad++?

2011-02-22 Thread mongoose
hi all, I'm using notepad++ a lot and really missing a code formatter (vim would be = to format). Anyone know of anyway to format my html nicely? I've tried HTML Tidy but it keeps adding a 20% where I have a space for example "{{%20MEDIA_URL%20}}css/styles.css". -- You received this message beca