[Tutor] colours in IDLE
Alan Gauld
alan.gauld at btinternet.com
Thu Apr 16 00:50:34 CEST 2009
"mbikinyi brat" <mbikinyi_brat at yahoo.com> wrote
> When you type a code in IDLE-Python, they appear in different colours.
> For instance:
> factorial in blue and return and else and result in red.
> Any significance to these colours?
Yes, they indicate different syntactic features. You can change
them and see what they are for by looking at the configuration
screens, the Highlighting tab. There is a drop down list that will
show you what can be coloured.
This is a useful tool since it can show an unterminated string
(ie where you forgot the closing quote), or where you
accidentally use a keyword as a variable name etc
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list