简体   繁体   English

Notepad ++中的Python语法突出显示

[英]Python Syntax Highlighting in Notepad++

I know Notepad++ supports Python but under the language menu I cannot find it! 我知道Notepad ++支持Python,但在语言菜单下我找不到它! At "P," it only lists Pascal, Perl, PHP, Postscript, PowerShell, and strangely, Properties. 在“P”,它只列出Pascal,Perl,PHP,Postscript,PowerShell,奇怪的是,属性。 I am writing some Python scripts and I want the syntax to be highlighted. 我正在编写一些Python脚本,我希望突出显示语法。 How can I activate Python highlighting? 如何激活Python突出显示?

Maybe it's disabled. 也许它被禁用了。 Check in Preferences | 签入首选项| Language Menu/Tab Settings if it's not among the disabled items. 语言菜单/选项卡设置,如果它不在禁用的项目中。

Weird. 奇怪的。 I have Notepad++ v6.3 on this PC and it is there: 我在这台PC上有Notepad ++ v6.3,它就在那里:

在此输入图像描述

Try to uninstall and reinstall Notepad++. 尝试卸载并重新安装Notepad ++。 Be sure to get the latest version from SourceForge - 一定要从SourceForge获得最新版本 -

http://sourceforge.net/projects/notepad-plus/ http://sourceforge.net/projects/notepad-plus/

尝试卸载并安装新版本的Notepad ++表单

Please make sure it is not disabled. 请确保它未被禁用。 I happens to me too. 我也碰巧遇到了我。

To check go to preferences, click on language items in the left and make sure that python is not in disabled languages. 要检查转到首选项,请单击左侧的语言项,并确保python不是禁用的语言。 Reboot notepad++ after applying changes. 应用更改后重新启动记事本++。

On mine, notepad++ v7.5.8, Python is not in the P section but it is in the bottom of languages menu. 在矿山,记事本+ + v7.5.8,Python是不是在P部分,但它在语言菜单的底部。

看看照片。

This is the default arrangement for my version of notepad++ so all bets are off if you changed it under settings. 这是我的notepad ++版本的默认安排,因此如果您在设置下更改了所有投注,则所有投注均已关闭。

是的,python位于语言列表的底部(不在P项目下 - 我相信在我使用“设置”后它已移出P)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM