Notepad ++ plug-in textfx (installation and function)

Source: Internet
Author: User
Tags tidy

Install: Open notepad ++ plug-in-> plugin manager-> show plugin manager-> available-> select textfx-> install
(Note: If there is no plug-in, the updates plug-in will be used first)

Notepad ++ plug-in textfx characters is a default installed plug-in. Due to its powerful functionality, it is considered by programmers as the best notepad ++ plug-in, and the second is light explorer. However, because there are too many textfx plug-in commands and there is no Chinese version, it is not easy to understand. Lightning blog particularly introduces the following common command functions:

1. delete program blank lines
Select the appropriate text
Click textfx-> textfx edit-> Delete blank lines
Click textfx-> textfx edit-> Delete surplus blank lines

2. Add a line number for the code
Select the text of the row number to be added ("no text selected" will be prompted when selecting ")
Click textfx-> textfx tools-> insert line numbers

3. Delete the program line number or the first word
Select the appropriate text
Click textfx-> textfx tools-> Delete line numbers or first word

4. Organize the XML text format.
This function is good. You can quickly organize a line of text into a standard XML file. (This function is very good for processing blogger XML documents. My own documents have been edited countless times, which greatly improves readability .)
Select all text
Click textfx-> HTML tidy-> tidy: reindent XML
Similar functions are available for processing HTML files.

5. Change the case sensitivity of characters.
Select the appropriate text
Click textfx-> textfx characters to select the following forms:
All upper case
Lower case all lower case
Proper case capital
Sentense case sentence Mode
Invert case, in lower case and other upper case

6. Remove the HTML element from the text.
Select HTML Element
Click textfx-> textfx convert-> strip HTML tags table tabs

7. Convert to HTML Object
Convert "<" to "& lt;" and ">" to "& gt ;". (It Can Be Used to easily insert code for blogger articles .)
Select the appropriate text
Click textfx-> textfx convert-> encode HTML (& <> ")

// ================================================ ==============================

Notepad ++ is a free open-source cross-platform code editor. It supports multiple languages, including Chinese, and has powerful functions. In addition to plain text instruction files, it is also suitable for editing computer programs. Notepad ++ not only enables syntax highlighting, but also syntax folding, and supports macros and plug-ins that expand basic functions.
After using notepad ++ to edit webpage files instead of Dreamweaver, the powerful code highlighting and tag selection function of notepad ++ automatically searches for closed tags to make code coding easier. Previously, when using Dreamweaver, it took a long time to find the starting tag of a closed tag (for example, "Div" without any comments. But on notepad ++, you only need to click Close tag. notepad ++ will automatically find the start tag and highlight it, making it very convenient for lazy people like me.

When I used notepad ++ today, I encountered a problem where I copied the content from external documents to notepad ++, and now I want to provide the solution to you, hope to help children's shoes with such problems.

When I copy the code to notepad ++ in notepad or Chrome's review elements, notepad ++ adds a line of blank lines to each line of code with "love. If there are few codes, you can manually delete empty lines. However, we copied nearly 100 lines of base64 code from notepad today. If we still Delete spaces manually, we can imagine the time required. So I went to Google for a crazy search and finally found a solution-using the plug-in textfx provided by notepad ++. For example.

First, select the code to delete the empty lines, and then click textfx → textedit → Delete blank lines in turn. The annoying empty lines will disappear.

In fact, the textfx plug-in provided by notepad ++ is very powerful, but I have ignored it all the time. I would like to briefly introduce some common functions of this plug-in:

Textfx characters-> upper case, lower case, proper case, sentence case, invert case: Change the case sensitivity of selected text in batches.
Textfx edit-> Delete blank lines: this is the space I just mentioned to delete.
Textfx edit-> Delete surplus blank lines: converts multiple consecutive spaces of the selected text into one space.
Textfx convert-> encode URI component: Convert the punctuation marks in the selected text to hexadecimal notation to make them URL-friendly.
Textfx convert-> encode HTML (& <> "): converts the angle symbol in the HTML file into hexadecimal notation.
Textfx HTML tidy-> tidy reindent XML: Indent unformatted XML files according to their specifications. (Very practical)
Textfx tools-> sort lines case sensitive, sort lines case insensitive: sort.
Textfx tools-> insert line numbers: adds a row number to the selected text and sorts the selected text based on the first row of the file.
Textfx tools-> word count: indicates the number of selected texts, including the total number of detailed texts and the number of lines.

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.