Re: Auto-indent

297 views
Skip to first unread message

unsynchronized

unread,
Dec 20, 2013, 2:52:25 PM12/20/13
to textwr...@googlegroups.com
as much as i generally dislike "me too" posts...

me too.

must have.

need much.

want bad.

please.

seriously.

please.

On Wednesday, June 27, 2012 9:27:25 AM UTC+12, Andrew H. Min wrote:
I just switched to TextWrangler, and love it. The one thing that forces me back to my old editor, DrJava, is a really handy auto-indent feature. If you had the following code:

if(!$false)
{
    if (!$true)
 {
        }
}

and selected it and hit the tab key, DrJava will automatically fix the indents:

if(!$false)
{
    if (!$true)
    {
    }
}

It seems like it would be pretty easy to implement this in TextWrangler. Has it been, and I've just been missing it?

Rich Siegel

unread,
Dec 20, 2013, 4:19:31 PM12/20/13
to textwr...@googlegroups.com
On Friday, December 20, 2013, unsynchronized
<jonathan....@gmail.com> wrote:

>On Wednesday, June 27, 2012 9:27:25 AM UTC+12, Andrew H. Min wrote:
>>
>>I just switched to TextWrangler, and love it. The one thing
>>that forces me back to my old editor, DrJava
>><http://drjava.sourceforge.net/>, is a really handy
>>auto-indent feature. If you had the following code:
>>
>>if(!$false)
>>{
>>if (!$true)
>>{
>>}
>>}
>>
>>
>>and selected it and hit the tab key, DrJava will automatically
>>fix the indents:
>>
>>if(!$false)
>>{
>>if (!$true)
>>{
>>}
>>}
>>
>>
>>It seems like it would be pretty easy to implement this in
>>TextWrangler. Has it been, and I've just been missing it?

You may want to take a look at hooking up Artistic Style
<http://astyle.sourceforge.net/> to a Unix filter. Seems like it
would be pretty easy to implement this. :-)

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they
sedate me.

Reply all
Reply to author
Forward
0 new messages