The following tutorial column of notepad will introduce to you the features worth mentioning in notepad. I hope it will be helpful to friends in need!
I personally find some useful features worth mentioning:
1. Supports syntax highlighting and color customization
The key is that it supports so many languages, in addition to the common c/c, java, php, it also supports python and xml.
And for xml, it also supports clicking on keywords to expand or contract, which is very convenient. Later I learned that this feature is called code folding, which is embarrassing. . .
Also supports makefile, which is very convenient for viewing makefile files.
And even the syntax highlighting of Tex/LaTex, which is not commonly used by ordinary people, is supported, which is very powerful.
The color displayed when syntax highlighting can also be customized. Click:
Settings -> Style Configurator
to configure different colors according to your needs.
[Customize other suffix files other than the default suffix to be a certain type of file to achieve syntax highlighting]
And for the suffixes of different types of files, in addition to the default file suffix , set a custom file suffix. For example, I encountered that for ordinary makefiles, the default suffix is .mak, and my own .mk here is also a makefile file, so it can be set like this:
Settings -> Style Configurator -> Scroll down to find Makefile in Language, select makefile, and the lower corner will appear:
Default ext. and user ext., the default extension is The suffix name corresponds to .mak. Fill in .mk in the box corresponding to user ext., and then click Save&Close on the right. Notepad can automatically recognize the .mk file as a makefile, and then quote the corresponding syntax highlighting.
Of course, if you do not set it, open the .mk type file separately. Although notepad will not automatically recognize it and there is no syntax highlighting, you can also select it manually:
language -> M -> Makefile, you can achieve the same function, but you have to trouble yourself to set it manually every time.
2. Add hex editor plug-in to support hexadecimal editing
notepad supports adding HEX-Editor plug-in to support hexadecimal viewing and editing, which is very convenient .
[How to add the Hex Editor plug-in]
First know whether your own notepad is ANSI or UNICODE through the method above [View the current notepad version],
Then according to the above [notepad plug-in adding method] go to the official website of the Notepad plug-in, find and download the corresponding version of Hex Editor, and put the plug-in file HexEditor.dll into npp.5.8.6.bin\ansi\plugins under the NotePad path Just inside the folder.
Restart notepad and you can see the corresponding Hex-Editor plug-in in Plugins.
It is worth mentioning that the latest version (5.8.7) also supports adding a shortcut icon to the toolbar after adding a plug-in. For HexEditor , which is an icon with a capital H. Click the icon to view it in hexadecimal format. Click it again to return to the normal mode, which is very convenient.
3. Support column mode editing
After holding down Alt, you will be in column mode. Then, for example, if you select a column, right-click and select Delete, you can After deleting those columns, release ALT to exit ALT and return to normal mode. It's very easy to use. I feel more and more that Notepad is awesome. It supports all kinds of functions. . .
In the column operation mode, if you want to insert some content into the entire column, you can do this:
Edit -> Column Editor (Alt C)
Then write in the corresponding box of Text to insert or Number to insert If you want to insert the content, notepad will automatically insert the corresponding content of the entire column for you.
4. After selecting a word or keyword, notepad will automatically highlight the corresponding selected keyword, which is very convenient for file viewing.
5. When opening multiple files, the corresponding Tab will be displayed above. By default, double-clicking the Tab cannot close the file like some other tools, but it can be set:
In Settings-> Preference ->General -> Tab Bar, select:
Double Click to close document, and then double-click the tab of the corresponding file to close the file.
Similarly, there is an option: show close button on each tab. When selected, a close button will appear on each tab, which is also very convenient to use.
6. Display the file line number: Settings-> Preference -> General -> Editing-> Select Display Line Number to display the line number
7. Whether to print the line number: Settings-> Preference - >General -> Printing-> Whether to select Printing Line Number, it is not selected by default. If necessary, you can select it, so that the line number can also be printed when printing. It is very convenient for users to set according to their own needs. .
8.编辑文件后,是否备份:类似Ultra Editor,编辑一个文件后,默认会生成.bak文件的,对于notepad++来说,也是支持此功能的,不过默认是关闭的。需要的话,可以去这里设置:Settings-> Preference ->General -> Backup/Auto-completion -> 默认是None,其他还有Simple和verbose backup,可以根据自己需要而设置。
9.自动完成功能:Settings-> Preference ->General -> Backup/Auto-completion,自动完成:Auto-Completion,可以根据自己需要而设置,默认是关闭的。
10.选中某文字,然后调用google搜索:
run -> google search
除了google搜索此项功能,于此相关类似的还有,选中文字后,调用其他程序或功能,比如直接调用wiki查询该单词/文字:
run -> wikipedia search
或者直接从notepad++中打开当前文件所在文件夹:
run -> open containing folder
从notepad++中打开windows的cmd,并且已经处于当前文件夹:
run -> open current dir cmd
直接把该文件作为附件,然后打开Windows的Outlook发送邮件
run -> send via Outlook
等等,都是非常实用好用的功能。
11.暂时隐藏某些行
如果在查看文件的时候,暂时觉得需要将某些行隐藏掉,在需要的时候再正常显示,就可以先选中那些行,然后:
View -> Hide Lines
即可。然后左边标签那列就会显示对应的标示,点击即可取消隐藏。
12.支持鼠标滚轮控制缩放
notepad++不仅支持快捷键Ctrl + Num+/Num- 去控制缩放,而且还支持Ctrl+鼠标滚轮去控制当前显示内容的缩放,很是方便。
13.全屏显示
有时候显示文档的话,希望显示更多的内容,希望用到全屏显示,通过view -> Toogle Full Screen Mode F11或者Post it F12,都可以实现全屏显示,也很是方便。
14.集成了轻量级的资源管理器
通过安装插件(默认好像是已经安装了)LightExplorer后:
Plugins -> Light Explorer -> Light Explorer,就可以在左侧打开一个轻量级的资源管理器,方法打开想要打开的文件,很是方便啊。
15.导出成其他类型文件 -> 实现彩色代码的粘贴
在添加了对应的NppExport插件后,就可以导出成不同的格式,比如HTML和RTF:
plugins -> NppExport -> Export to RTF或Export to HTML
其中HTML就是普通的HTML,RTF就可以理解为简洁版本的word,所以html和rtf,两者都是支持彩色代码/字符的,因此,这个功能就可以实现我们所需要的,将已经高亮显示,彩色显示,着色后的代码,导出到word或者其他文档中了。这样的功能,是很实用的。至少我个人觉得很好用,比如将一些C代码打开后,导出成html,然后打开html复制内容后粘贴到word里面,就是彩色的代码了。当然,你也可以导出成rtf,然后本身就是和word兼容的,windows下,也就是默认用word打开的了,就省去了从html拷贝粘贴过来的步骤了。
甚至,NppExport还提供了更方便的功能:
plugins -> NppExport -> Copy HTML to clipboard 或Copy RTF to clipboard
即,直接选择内容后,拷贝该内容到剪贴板,然后你就可以在其他word文件中直接粘贴了,即如此简单地就实现了彩色代码的支持,多么爽啊。
16.代码折叠
包括对C/C++等代码,可以以单个函数为整体进行代码的折叠和展开,其他的类型的,比如XML,根据关键字所包含的内容为整体进行折叠和展开等等。
17.资源管理器中,右键点击文件,可以直接用notepad++打开该文件
这个功能类似于UltraEdit,在资源管理器中添加了右键支持,右键点击某文件后,会出现“Edit With Notepad++”,就可以直接用notepad++打开该文件了,个人觉得这个功能还是很实用的。
The above is the detailed content of Notepad features worth mentioning. For more information, please follow other related articles on the PHP Chinese website!