有人知道如何在notepad++中更改背景颜色、字体大小和其他基于外观的设置吗?默认是白色,但我正在尝试将其改为深灰色或其他颜色。


进入“设置->样式配置器”

选择主题:选择你最喜欢的(前两个最容易阅读,大多数人的喜好)

您可能需要管理员权限才能在您的系统上执行此操作。

Create a folder 'themes' in the Notepad++ installation folder i.e. C:\Program Files (x86)\Notepad++ Search or visit pages like http://timtrott.co.uk/notepad-colour-schemes/ to download the favourite theme. It will be an XML file. Note: I prefer Neon any day. Download the themes from the site and drag them to the themes folder. Note: I was unable to copy-paste or create new files in 'themes' folder so I used drag and that worked. Follow the steps provided by @triforceofcourage to select the new theme in Notepad++ preferences.

在过去的3年里似乎有一个更新,改变了放置主题的位置,以便让它们工作。

以前,主题位于notepad++安装文件夹中。现在它们位于AppData中:

C:\Users\YOUR_USER\AppData\Roaming\Notepad++\themes

我的回答是对@Amit-IO关于手动复制主题的回答的更新。

在资源管理器中,浏览到:%AppData%\ notepad++。 如果名为themes的文件夹不存在,请创建它。 从任何地方下载你最喜欢的主题(参见Amit-IO的答案),并保存到%AppData%\ notepad++ \themes。 重启notepad++,然后使用设置->样式配置器。新的主题将出现在列表中。

如果有人想启用黑暗模式,可以按照以下步骤进行

打开notepad++,在菜单栏上选择“设置”,然后选择“样式配置器”。 选择主题“Obsidian”(可以选择其他黑暗主题) 点击保存&关闭

notepad++在过去的几年里发生了变化,它需要一些额外的步骤来设置一个黑暗主题。

Amit-IO的回答很好,但是所需的示例主题已停止维护。DraculaTheme激活。只需下载XML并将其放在主题文件夹中。在Windows中,您可能需要Admin访问权限。

C:\Users\YOUR_USER\AppData\Roaming\Notepad++\themes

https://draculatheme.com/notepad-plus-plus

我刚刚安装了最新版本的notepad++网站(目前是v8.1),它提供了一个显式的暗模式设置。 点击“设置”->“首选项…”->“暗模式”->选中“启用暗模式”复选框。编辑器可能需要重新启动才能完全生效。 https://notepad-plus-plus.org/downloads/

如果您不能添加主题,一个变通办法是转到

用户/ Appdata / LocalRoaming / notepad++

确保将styles .xml中的任何数据保存为之前的备份

在那里你会发现一个stylers.xml,你可以编辑它,任何你需要的xml格式。 (https://raw.githubusercontent.com/dracula/notepad-plus-plus/master/Dracula.xml)

有时即使在添加了文件之后,notepadd++也无法拾取主题 要恢复,只需用备份文件编辑styles .xml。

重新启动后,您可以看到notepad++已将该样式作为默认样式