IDLE 不会突出显示我的语法 [英] IDLE won't highlight my syntax

查看:41
本文介绍了IDLE 不会突出显示我的语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 IDLE 和 Python 2.7.3 版.只有当我启动一个新文件时,它才会突出显示几行,然后在我按 F5 后才停止.所以我所有的文字都变成了纯黑色.

Using IDLE and Python version 2.7.3. Only when I start a new file it highlights for a few lines and then just stops after I press F5. So all my text becomes plain black.

如果有同样好的/更好的命令行和编辑器组合,您可以随时推荐它们.

If there are equally good/better command line and editor combinations out there, you may always suggest them.

推荐答案

这也发生在我身上.将其另存为 .py(在文档名称中手动键入 .py),然后高亮显示.

This happened to me too. Save it as .py (manually type .py in the document name), and the highlighting will come back.

这篇关于IDLE 不会突出显示我的语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆