Home Development Tools notepad Notepad features worth mentioning

Notepad features worth mentioning

Jul 27, 2020 pm 01:39 PM
notepad

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!

Notepad features worth mentioning

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
Copy after login

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)
Copy after login

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
Copy after login

除了google搜索此项功能,于此相关类似的还有,选中文字后,调用其他程序或功能,比如直接调用wiki查询该单词/文字:

run -> wikipedia search
Copy after login

或者直接从notepad++中打开当前文件所在文件夹:

run -> open containing folder
Copy after login

从notepad++中打开windows的cmd,并且已经处于当前文件夹:

run -> open current dir cmd
Copy after login

直接把该文件作为附件,然后打开Windows的Outlook发送邮件

run -> send via Outlook
Copy after login

等等,都是非常实用好用的功能。

11.暂时隐藏某些行

如果在查看文件的时候,暂时觉得需要将某些行隐藏掉,在需要的时候再正常显示,就可以先选中那些行,然后:

View -> Hide Lines
Copy after login

即可。然后左边标签那列就会显示对应的标示,点击即可取消隐藏。

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
Copy after login

其中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
Copy after login

即,直接选择内容后,拷贝该内容到剪贴板,然后你就可以在其他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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to open large files in notepad++ How to open large files in notepad++ Apr 08, 2024 am 09:45 AM

How to open large files using Notepad++? Start Notepad++, click File > Open, and select the large file in the file browser. Common problems you may encounter: slow loading of files, "file too big" errors, insufficient memory, corrupted files. Ways to optimize performance: disable plug-ins, adjust settings, use multi-threading.

How to format in notepad++ How to format in notepad++ Apr 08, 2024 am 05:12 AM

Notepad++ provides a variety of formatting options, including: 1. Automatic alignment: Ctrl + A After selection, Edit > Operation > Alignment; 2. Indentation: Tab/Shift + Tab or configured in settings; 3. Line break: Ctrl + J/Ctrl + Shift + J or configured in settings; 4. JSON formatting: Ctrl + Shift + F; 5. Case conversion, first letter capitalization, duplicate line deletion and other options.

How to find duplicate data in notepad How to find duplicate data in notepad Apr 08, 2024 am 05:36 AM

To find duplicate data in Notepad, just perform the following steps: 1. Load the file; 2. Press "Ctrl + F" to open the "Find" dialog box; 3. Enter text and select the "Find All" option; 4. Click "Find" Next" button; 5. Manually mark or copy duplicate data.

How to compare files in notepad++ How to compare files in notepad++ Apr 08, 2024 am 04:45 AM

In Notepad++, you can perform file comparisons by installing the comparison plug-in. Specific steps include: 1. Install the comparison plug-in 2. Open the file 3. Start the comparison 4. Analyze the results 5. Take advantage of advanced features such as side-by-side comparison, ignore whitespace, and custom colors

How to compare two texts in notepad How to compare two texts in notepad Apr 08, 2024 am 03:57 AM

Notepad provides a text comparison function that can compare the differences between two text files. The steps include: 1. Open two text files; 2. Enable the comparison function; 3. Compare the files; 4. View the comparison results.

How to adjust font size in notepad How to adjust font size in notepad Apr 08, 2024 am 10:21 AM

Font size can be adjusted in Notepad by following these steps: 1. Open Notepad; 2. Go to the "Format" menu; 3. Select the "Font" option; 4. In the "Font" window, use the "Size" field to adjust the font size; 5. Click the OK button to apply the changes.

How to set default encoding in notepad++ How to set default encoding in notepad++ Apr 08, 2024 am 05:21 AM

This article explains how to set Notepad++'s default encoding so that it automatically uses a specific encoding when you open a file. Specific steps include: Click the "Encoding" menu and select "Set Default Encoding". Select the desired encoding, such as UTF-8, from the Default Encoding dialog box. Click the "Save" button to complete the settings.

Which components should be selected for notepad++ installation? Which components should be selected for notepad++ installation? Apr 08, 2024 am 10:48 AM

When installing Notepad++ components, it is recommended to select the following required components: NppExec, Compare, Multi-Edit, Spell Checker, XML Tools. Optional components are available to enhance specific functionality, including Auto Completion, Column Editor, DSpellCheck, Hex Editor, and Plugin Manager. Before installing components, identify frequently used functions and consider compatibility and stability. Install only the components you need to avoid unnecessary clutter.

See all articles