Download and use of notepad++ plugin Textfx

Source: Internet
Author: User
Tags closing tag tidy

Today encountered the same problem resolved hereby recorded

In the face of messy XML or HTML code, how to neatly format it?   In addition to formatting in Visual Studio and Dreamweaver, there is an alternative to using the notepad++ plug-in textfx. Notepad++ is a free, open source, cross-platform code Editor. It supports multi-lingual languages, including Chinese, and is powerful. Not only can the syntax highlighting, but also has the syntax folding function, and support macros and expand the basic functions of the plug-in module.   Code highlighting and tag selection automatically find the closing tag function to make it easier to tap the code. However, the default latest version of notepad++ is no longer available with the Textfx plugin, so it needs to be downloaded and installed by itself.

1, download Textfx v0.26 Click here to download Textfx

2, the installation will download the file decompression, get NppTextFX.dll, copy it to the notepad++ installation directory plugins folder, restart.

3, about tidy after installing the plug-in Textfx, also missing a textfx plug-in tidy, so textfx part of the functionality is not available. Tidy difficult to find, but in the old version of notepad++ v5.9 also have this plugin libTidy.dll, so you need to download notepad++ v5.9, Address: http://download.tuxfamily.org/notepadplus/5.9/npp.5.9.bin.zip After extracting the notepad++ v5.9 Zip package, go to the Plugins\config folder and copy the Tidy folder to the notepad++ folder under the new Plugins\config installation directory.

4, use TEXTFX 1) Remove the program blank line Select the appropriate text click textfx-> textfx edit-> Delete blank lines, delete the blank lines within the selected text multiple consecutive spaces of the selected text are converted to a single space. Click textfx-> textfx edit-> Delete surplus Blank Lines

2) Organize XML format select all the text and indent the unformatted XML file by specification click textfx->html tidy->tidy:reindent XML

3) Change the character case to select the appropriate text click Textfx-> textfx characters, you can choose from the following forms: UPPER case all caps lower case all lowercase Proper case first capitalization Senten Se case sentence Pattern INVERT case First letter lowercase, other uppercase

4) Remove HTML elements from text Select HTML elements click textfx-> textfx convert-> Strip HTML Tags table tabs

5) Convert "<" to "&lt;" and ">" to "&gt;" as HTML entity. Select the appropriate text click textfx-> textfx convert-> Encode HTML (&<> ")

6) Count the number of selected text, including the total number of words, number of lines, etc. Select the appropriate text click Textfx Tools, Word Count

Download and use of notepad++ plugin Textfx

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.