Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43056 > unrolled thread

Displaying colours in saved script

Started byCasperb <boru4781@gmail.com>
First post2013-04-08 03:32 -0700
Last post2013-04-08 06:55 -0400
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Displaying colours in saved script Casperb <boru4781@gmail.com> - 2013-04-08 03:32 -0700
    Re: Displaying colours in saved script Dave Angel <davea@davea.name> - 2013-04-08 06:55 -0400

#43056 — Displaying colours in saved script

FromCasperb <boru4781@gmail.com>
Date2013-04-08 03:32 -0700
SubjectDisplaying colours in saved script
Message-ID<6899601e-4a24-4ef1-b848-864e471739eb@googlegroups.com>
Hi all,

I'm new to Python and have a pretty basic question, explained in the following screendump:

http://i.imgur.com/oaCuKp5.jpg

After I save my script, the nice colours that make the code easier to read disappear.  How do I stop that from happening?

Any help much appreciated.

[toc] | [next] | [standalone]


#43058

FromDave Angel <davea@davea.name>
Date2013-04-08 06:55 -0400
Message-ID<mailman.281.1365418523.3114.python-list@python.org>
In reply to#43056
On 04/08/2013 06:32 AM, Casperb wrote:
> Hi all,
>
> I'm new to Python and have a pretty basic question, explained in the following screendump:
>
> http://i.imgur.com/oaCuKp5.jpg
>
> After I save my script, the nice colours that make the code easier to read disappear.  How do I stop that from happening?
>
> Any help much appreciated.
>

Python source code is a plain text file, which has no colors.  The 
colors are used by your Python Shell only for displaying to the screen.

When Python Shell reloads Python source, it presumably reparses the text 
and shows it with colors.  My guess is that by naming the file without a 
.py extension, you convinced Python Shell that it was NOT source code, 
and therefore shouldn't be colorized.

-- 
DaveA

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web