Plug-ins commonly used in notepad++

Source: Internet
Author: User
Tags html page json lua zip

1.4. Plugins commonly used in notepad++
1.4.1. Plugin Manager: Plugin Manager
Plugin Features: This plugin can help you manage plugins, including viewing what plugins are currently installed, and automatically downloading the appropriate plugins for you.

Plug-in usage: mainly used to manage (install and uninstall) plugins

Plug-in installation: During the installation process, the default is selected to install this plugin: Figure 2.2 "notepad++ has some plugins installed by default"

1.4.1.1. Open plugin Manager
Plug-in (P) →plugin manager→show Plugin manager→avaliable, a column shows the list of currently available plug-ins, select the plugin you want, and then click the install below to automatically download and install the corresponding plugin, it is very convenient.

In the intalled column, you can see which plugins are currently installed:

1.4.1.2. Installing the plug-in via plugin Mangager
The following is an example of light explorer that shows how to install a plugin via plugin manager:

After opening plugin manager through section 1.4.1.1, "Open Plugin Manager", locate and select Light Explorer, then click Install:

Plugin Manager will automatically download the corresponding plugin and install it for you:

When the installation is complete, you will be prompted to restart:

When you select Yes, notepad++ automatically restarts and automatically opens those files that were opened before closing.

At this point, you can see the plugins that you have installed:

1.4.2.16 Binary Editor: Hex-editor
Plug-in Features: This plugin mainly provides 16 binary viewing and editing capabilities.

Plug-in Usage: View and edit files in 16 binary mode.

Plug-in Installation: Refer to section 1.3, "notepad++ plugin Download and installation" To install the Hex editor plugin

Hex-editor Features:
1.4.2.1. Viewing the current file in 16 binary mode
There are several ways to view the current file in 16 binary mode:

Plugin (P) ⇒hex-editor⇒view in HEX ctrl+alt+shift+h

Click the Hex Editor icon on the toolbar

Direct use of shortcut keys: ctrl+alt+shift+h

Tips
Exiting the 16 binary mode is the same as entering the 16 binary mode.

You can then view the current file in 16 binary mode:

Next, you can view and edit the corresponding 16 binary values.

For more options, such as to set other font types and font sizes, go to the options listed above in the hex-editor below and set them according to your needs:

1.4.3. Exporting a color code to a file in other (word,html) format: Nppexport
Plug-in Features: Exporting files that have been shaded to other formats

Plug-in use: color code, export to Word document (RFT) or Web page (HTML) file, or color code (Rich Text format or HTML format) to the Clipboard, paste into other (Word document, HTML page) go.

Plug-in installation: During the installation process, the default is selected to install this plugin: Figure 2.2 "notepad++ has some plugins installed by default"

Nppexport Features:

1.4.3.1. Export the current (shaded/code highlighting/syntax highlighting) color code to a Word file or HTML page
For the selected code, copy the contents of its corresponding rich text format to the clipboard:

Then paste into the new Word document:

People who want to get color code will be very fond of this feature.

Direct copy of the code, there is no color code effect
Almost forgot to say, and here the color code copy function corresponds to:

For an ordinary text editor, including the current notepad++ editor, install a code for the copy of the normal assignment operation:

And then paste it somewhere else, without the effect of color code:

So, with contrast, we know the benefits of a color code copy here.

If you want to export the entire file, you are:

Plugin (P) ⇒nppexport⇒export to RTF

The color XML code that is currently highlighted in the syntax:

Export to Word file:

Obviously, if you need to paste this color code in Word, this feature will be useful.

For exporting to HTML pages, the procedure is similar:

1.4.4. Lightweight Resource Manager: Light Explorer
Plug-in Features: Lightweight explorer

Plug-in use: Easy to open files

Plug-in Installation: Refer to section 1.4.1.2, "Installing plugins via plugin Mangager" To install the Light Explorer plugin.

Light Explorer Features:

1.4.4.1. Browsing files through Light Explorer, opening files
You can open the lightweight Explorer by tapping the corresponding icon directly:

Next, it is very simple, is to browse the folder, find the file you want to open, double-click, you can open the file with this notepad++.

Just tried, found, here, no matter what kind of files, such as pictures, can be opened with notepad++.

Of course, open images and other types of files are also open in text mode:

1.4.5. Parentheses auto-complete plug-in: Xbracket Lite
I've been hoping that notepad++ has this feature, and the results don't find the option, and now it's finally done with plugins.

This plugin Xbracket Lite was learned from bracket autocompletion.

Plugin function: For some parentheses class characters, such as single quotation mark ', double quotation mark ', parentheses (, curly braces {, brackets, etc., automatically help you to complete the auto-completion

Plug-in usage: reduces the amount of work required to write code and compile XML class files

Plug-in Installation: Refer to section 1.4.1.2, "Installing the plugin via plugin Mangager" To install the Xbracket Lite plugin, screenshot below:

Xbracket Lite Features Detailed:

1.4.5.1. Automatic completion of parentheses with Xbracket Lite
Go ahead and open the appropriate settings:


It explains the meaning of the corresponding option:

Treat "as Brackets
Enclose the single quotation mark ', also as a parenthesis, so that you can enter a single single quotation mark later, you may also implement the automatic completion of another single quotation mark.

treat< > as Brackets
The angle bracket is also regarded as a kind of bracket, so it is convenient to write the tag in xml,html and other files, automatically help you complete.

If you choose: </>, then input <, then fill out/>.

If you have selected: only if file extension contains, then the auto-completion is used for angle brackets only when files such as these htm,xml are currently present. In other types of files, do not go to the angle brackets to achieve the completion of the operation.

Skip escaped bracket characters:[,} etc.
When entering [or}, it is not auto-complete.

Because when writing code, many times the backslash plus these parentheses, itself is to represent a single character, so do not need to complete.

Autocomplete brackets ([{""}])
That is, whether the plug-in is enabled.

After setting up, enable the plug-in, open a file, enter these parentheses, you will find that you can automatically help you to complete the completion.
1.4.6. Support for feature extensions in notepad++ using JS scripts: JN
Previously called Nppscripting, later renamed Jn

Plug-in Features: Allows notepad++ to run the corresponding JavaScript script, which will extend some additional functions, add the corresponding menu, provide various functions

Plug-in uses: allows you to implement, write your own JavaScript scripts, almost any function you want to implement. And in itself it has implemented a lot of common functions for you to use.

Plug-in Installation:

Refer to section 1.3.2.1, "Installing the plugin Manually" to download Jn.zip

After extracting, copy the Jn folder and JN.dll to the plugin directory of notepad++.

For more details, refer to "records" to enable the ability to extract the original URL from the wrong Google address using the URL codec plugin in notepad++ 's JN plugin

1.4.7. Display list of functions: Function list
Plugin function: Used to display a list of functions. supports many languages, including C, C + +, Resource file, Java, assembler, MS INI file, HTML, Javascript, PHP, ASP, Pascal, Python, Perl, Objective C, LUA, Fortran, NSIS, VHDL, SQL, VB and BATCH

Plug-in use: So after opening the Python file, you can double-click on the displayed function in the list of a function to achieve a quick positioning to the corresponding position.

Plug-in Installation:

Refer to section 1.3.2.1, "Installing the plugin Manually" to download Functionlist_2_1_uni_dll.zip

After decompression, follow the prompts in Install.txt to:

Copy the FunctionList.dll to the installation directory \notepad++\plugin

Copy the Gmod lua.bmp and C++.FLB to the installation directory \notepad++\plugin\config

Copy the Functionlistrules.xml to the%appdata%\notepad++\plugins\config.

It should be noted that the functionlistrules.xml here is the rule that defines the search function for the various languages. The file must be copied to the above location. As I did at the very beginning, it is not possible to copy to the installation directory \notepad++\plugin\config.

And%appdata% 's position, in my case, is c:\users\cli\appdata\roaming\notepad++\plugins\config.

After the plugin by ⇒function list⇒list ... or shortcut key ctrl+alt+shift+l, you can open the list of functions of the current file:

1.4.8. js code compression, JS code format, JSON viewer: JSMINNPP
Plug-in Features: Includes three features:

JS Code compression
JS Code formatting function
JSON code Viewer, displayed in a tree-like list
Plug-in uses: Three and a functional plug-in, is very convenient to use.

Plug-in Installation:

Refer to section 1.3.2.1 "Manual Install plugin", go to jsminnpp download Jsminnpp.1.11.2.uni.zip, extract JSMinNPP.dll copy to plugin directory.

To try, really good: JS code compression

JS Code formatting function
JSON code Viewer, displayed in a tree-like list

In other words, after the plugin was installed, the online version of the HTML/JS code format Web site, which was used previously, could reduce the number of uses by beautify JavaScript or HTML.

Because Javascript,json and other code, you can use this plug-in format and tree-like display.

Only, for the HTML code formatting, still need to use that jsbeautifier.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.