[pywin32-bugs] [ pywin32-Bugs-1174966 ] wrong coloring when sys.ps1 is changed
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2005-04-01 18:26:36
|
Bugs item #1174966, was opened at 2005-04-01 11:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1174966&group_id=78018 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Steven Bethard (bediviere) Assigned to: Nobody/Anonymous (nobody) Summary: wrong coloring when sys.ps1 is changed Initial Comment: If I set sys.ps1 = 'py>' sys.ps2 = '... ' in my sitecustomize.py, then PythonWin colors all text in the Interactive Window blue, and performs no syntax highlighting. One hack that fixes this is to put '>>>' after the copyright information, e.g. replace: sys.stderr.write("Portions %s - see 'Help/About PythonWin' for further copyright information.\n" % (win32ui.copyright,) ) in framework.interact with: sys.stderr.write("Portions %s - see 'Help/About PythonWin' for further copyright information.\n>>>\n" % (win32ui.copyright,) ) This causes code after the '>>>' to be correctly colorized. Ideally, the code that causes the coloring to be wrong would be changed, but I couldn't figure that out well enough to suggest how that might be done. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1174966&group_id=78018 |