Re: Which editor for Django code ??

2008-05-28 Thread Justin Lilly
Seems you've done a bit of duplicate work. If you're in Textmate, try going
to Text>Convert>Spaces to Tabs (or) Tabs to Spaces
Should do what your script does, I think.

 -justin

On Wed, May 28, 2008 at 12:46 PM, Daniel Bushman <[EMAIL PROTECTED]>
wrote:

>
> I use Textmate (with the Django bundle) and soft-tabs.  Sometimes If I
> paste code from the web there are indentation problems.   Here's what
> I use for quick clean-up:
>
> * search for [tab] and replace with [4 spaces] (using soft-tabs)
>
> I recorded a macro which does "select all" and then performs this
> search and replace.  Then I tied it to a hot-key.  So if pasted code
> has a problem, I just hit cmd-f3 and the problem is solved.
>
> Or In some cases I use:
>
> * "Cleanup whitespace" from the Python bundle
> or
> * "Show Invisibles" from the "View" menu to help spot the
> inconsistency visually.
>
> Hope this helps,
> Daniel
>
> On May 14, 9:31 am, "narendra.tumkur" <[EMAIL PROTECTED]>
> wrote:
> > Hi guys,
> > Trying to edit django code and keep running into indentation problems.
> > Have tried XCode, Textmate and JEdit on Mac OS X.
> >
> > What do you guys use?
> >
> > Cheers
> > Narendra
> >
>


-- 
Justin Lilly
Web Developer/Designer
http://justinlilly.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Re: Which editor for Django code ??

2008-05-28 Thread Daniel Bushman

I use Textmate (with the Django bundle) and soft-tabs.  Sometimes If I
paste code from the web there are indentation problems.   Here's what
I use for quick clean-up:

* search for [tab] and replace with [4 spaces] (using soft-tabs)

I recorded a macro which does "select all" and then performs this
search and replace.  Then I tied it to a hot-key.  So if pasted code
has a problem, I just hit cmd-f3 and the problem is solved.

Or In some cases I use:

* "Cleanup whitespace" from the Python bundle
or
* "Show Invisibles" from the "View" menu to help spot the
inconsistency visually.

Hope this helps,
Daniel

On May 14, 9:31 am, "narendra.tumkur" <[EMAIL PROTECTED]>
wrote:
> Hi guys,
> Trying to edit django code and keep running into indentation problems.
> Have tried XCode, Textmate and JEdit on Mac OS X.
>
> What do you guys use?
>
> Cheers
> Narendra
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Re: Which editor for Django code ??

2008-05-14 Thread Kevin Monceaux

Narendra,

On Wed, 14 May 2008, narendra.tumkur wrote:

> Hi guys,
> Trying to edit django code and keep running into indentation problems.
> Have tried XCode, Textmate and JEdit on Mac OS X.
>
> What do you guys use?

I use vim - console, not GUI.



Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Re: Which editor for Django code ??

2008-05-14 Thread narendra.tumkur

Apologies.
But thanks that worked.

On May 15, 1:45 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On Wed, May 14, 2008 at 10:31 AM, narendra.tumkur
>
> <[EMAIL PROTECTED]> wrote:
>
> > Hi guys,
> > Trying to edit django code and keep running into indentation problems.
> > Have tried XCode, Textmate and JEdit on Mac OS X.
>
> > What do you guys use?
>
> django-dev is a mailing list for discussion of development *of*
> Django, rather than development using Django.
>
> Please ask future questions of this sort on django-users.
>
> That said, I use TextMate mostly-- and if you had indentation problems
> with it, you probably didn't change python mode to use soft tabs w/ 4
> spaces per tab.Screenshot attached.
>
>  TextMateScreenSnapz002.png
> 42KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Which editor for Django code ??

2008-05-14 Thread narendra.tumkur

Hi guys,
Trying to edit django code and keep running into indentation problems.
Have tried XCode, Textmate and JEdit on Mac OS X.

What do you guys use?

Cheers
Narendra
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---