When I want to use Notepad to quickly view the xml file exported from somewhere (such as through: uiautomatorviewer), the file is in a mess and makes me dizzy.
The general situation is as follows: (Recommended learning: notepad use)
Install XML Tools plug-in
(1) Download XML Tools through the URL http://sourceforge.net/projects/npp-plugins/files/XML Tools/, I downloaded Xml Tools 2.4.9.2 x86 Unicode.zip
(2) Decompress Xml Tools 2.4.9.2 x86 Unicode.zip, close Notepad
(3) Decompress Xml Tools 2.4.9.2 x86 Unicode.zip Finally, copy the XMLTools.dll in the folder to the plugins folder in the Notepad installation directory
(4) Copy all the dll files in the dependencies folder in the unzipped directory to the root directory of Notepad (with notepad .exe is located in the same directory)
! : Whether the XML Tools plug-in is downloaded for x86 or x64 depends on which Notepad you installed. It just needs to be consistent with Notepad.
XML file formatting
After installation, start Notepad, click the Plugins tab, you can see that the XML Tools plug-in has been loaded. If you want to format an XML file, you can choose a series of options starting with Pretty print (here I choose to use the menu in the red box to achieve the effect I want).
The above is the detailed content of How to format xml in notepad. For more information, please follow other related articles on the PHP Chinese website!