This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author taleinat
Recipients cvrebert, gert, ggenellina, taleinat, terry.reedy
Date 2010-08-01.14:55:36
SpamBayes Score 0.0058965147
Marked as misclassified No
Message-id <1280674538.36.0.141802086232.issue6858@psf.upfronthosting.co.za>
In-reply-to
Content
I'm +1 on adding such an option to the menu, if only to be able to highlight files including only Python code which don't happen to have the .py extension.

If support for files including not only Python code is important to anyone, some examples of such files would be very helpful. I've never seen such files and I don't know how common such uses are.

Supporting files with some Python code in between other stuff is a different matter. Non-Python code being wrongly highlighted may be fine, but we'll need to make sure that the syntax highlighting is robust enough to be able to withstand going through a lot of invalid syntax, and still correctly highlight most of the Python code found in between. If IDLE fails to highlight a file it could of course fail gracefully, give an error message and not highlight, so I don't foresee this causing any stability issues.
History
Date User Action Args
2010-08-01 14:55:38taleinatsetrecipients: + taleinat, terry.reedy, ggenellina, cvrebert, gert
2010-08-01 14:55:38taleinatsetmessageid: <1280674538.36.0.141802086232.issue6858@psf.upfronthosting.co.za>
2010-08-01 14:55:37taleinatlinkissue6858 messages
2010-08-01 14:55:36taleinatcreate