thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Interpreter window mixing colors on output text. #406

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Cannot reproduce it consistently.  I suspect:
1. Set options to clear the window automatically at start of every execution.  
Run using the remote Python engine.
2. Run some failing doctests.  They display in red text in the interpreter 
window.  
3. Comment out or fix the doctests.  Then run your program that prints some 
text.  

What is the expected output? What do you see instead?

I expected all the text I printed to be in the same color.  Instead, the text 
in the output window randomly switches colours.  I suspect that when the window 
is cleared at the start of the run, some color properties are not being reset, 
and I'm seeing colour information from a previous run. 

What version of the product are you using? On what operating system?
PyScripter 2.1.1, Python 2.6.5, Windows 7

Please provide any additional information below.

The attached file shows a screenshot alongside the code that produced it, with 
three different colors on the output text.

Original issue reported on code.google.com by cspwc...@gmail.com on 2 Sep 2010 at 9:19

Attachments:

GoogleCodeExporter commented 9 years ago
The interpreter window is a editor window that has a custom syntax highlighter. 
 This syntax highlighter recognizes lines that start with >>> and ... as code 
lines (... is used for multi-line statements.  In your example the script 
output contains lines that start with ... and PyScripter is confused thinking 
that these lines contain Python code.  This is a corner case and I am not going 
to do something about this.

Original comment by pyscripter on 14 Sep 2010 at 10:29