Python auto-indenting

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
Erick Bodine

Python auto-indenting

Post by Erick Bodine »

I am trying to get auto-indenting to work w/ the Python syntax highlighting file I am using (Python22_1 by Jim Jinkins). No matter what I do with the following line in the *.syn file ( BracketChars = :{[()]}: ), I can not get TextPad to auto-indent a "python" block (blocks begin with a colon ":" not brackets). Any ideas???

Thanks, Erick
Roy Beatty

Re: Python auto-indenting

Post by Roy Beatty »

Configure > Preferences > Doc Classes > Python

Click on you Python document class. At the top level of each class you aer offerred a window of class options. The second option is "Automatically indent blocks".

I hope this helps,

Roy
NickP
Posts: 1
Joined: Mon Sep 20, 2010 10:28 am

Post by NickP »

I don't know about earlier versions, but this solution doesn't work with Textpad 5.3.1.

Anyone know of another way to get Textpad to increment the indent after pressing return on a line ending with a colon?
Post Reply