Page 1 of 1
Python auto-indenting
Posted: Wed Jul 03, 2002 8:17 pm
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
Re: Python auto-indenting
Posted: Fri Jul 05, 2002 6:01 pm
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
Posted: Mon Sep 20, 2010 10:36 am
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?