Hello,
In Text edit, one can count the spaces at the beginning of a line by
(a) enabling control-option-lock on VO, (b) putting the cursor at the
beginning of the line, and (c) pressing the right-arrow key as one
holds down the shift key. VO says "space" every time the shift-Right-
arrow key combination is pressed, which makes possible counting the
number of spaces before the first character.
I don't know if this will work in your application, too, but it may
be worth trying.
Rafael Bejarano
On Sep 23, 2006, at 2:04 AM, yvonne thomson wrote:
Hi all.
I've just spent half the afternoon battling with something that, I
hope someone can give me some advice on.
One of the main languages I program in is Python, and a big part of
that is significant whitespace. In other words, blocks of code are
defined by how far the code is indented, rather than using braces
or end statements like in other languages.
The problem I'm having is, well, how can you easily tell how many
spaces a line is indented by? Has anyone else had this problem? Or
is there another way to deal with this sort of thing? I've spent
far too many years in emacspeak, I'm afraid, where info like this
gets handed to you on a silver platter, <grin>.
Any suggestions or possible slaps over the head with the blatantly
obvious solution are gratefully accepted.