If you want to format or prettify an XML file using a text editor than Notepad++ is a good tool for doing it,
Notepad++ pretty print xml
- You need to have XML Tools Plugin installed if you do not have it follow the below steps, or skip to point number 2.
- Go to Menu: Plugins → Plugin Admin..
- Search: XML Tools
- Check the box and click on Intsall button
- Your Notepad++ would get re-started.
- Open your XML file
- Go to: Plugins → XML Tools
- Select pretty print
- You should now have your XML file formatted with proper indentation.
<xml><details><name>John L</name><age>24</age>
<location>Sweden</location></details></xml>
After Pretty print:
<xml>
<details>
<name>John L</name>
<age>24</age>
<location>Sweden</location>
</details>
</xml>
Note: ⚡️ You can also use Keyboard Shortcut: Ctrl + Alt + Shift + B
This is really useful are you can securely prettify your XML fine offline on your local system without using any online website or tool.
More Posts related to NotepadPlusPlus,
- Notepad++ Editor alternatives for macOS
- How to add or remove bookmark on a line in Notepad++
- Notepad++ do not show CRLF characters
- Reduce the size of Tabs on Notepad++
- Delete blank lines in a file using Notepad++
- Fix: Notepad++ bottom status bar not visible
- Notepad++ Hex Editor
- How to show End of Line Characters in File using Notepad++
- [Tutorial] Write And Run Python Code In Notepad++ Editor
- How to install XML Tools Plugin Notepad++
- Customizing Notepad++ New Document Line Encoding: CR/LF/CR LF
- How to remove blank lines from a file using Notepad++
- Column Mode Editing in Notepad++
- Convert text to random case using Notepad++
- How to recover unsaved notepad file Windows 10
- How to delete all text after a character or string in Notepad++
- Setting up Cloud feature with Notepad++
- Install Notepad++ silently using Windows Powershell
- Using Document Map in Notepad++
- Enabling Notepad++ Dark Theme
- [Fix] Notepad++ tab not visible (hidden)
- Where are Notepad++ macros stored?
- Multiple line editing in Notepad++
- Alternatives for Notepad++ on Mac in 2021
- [Nopepad++] How to add text at end of each line
More Posts:
- How to change the KeyMap in Android Studio - Android-Studio
- How to delete a file using PowerShell [Windows/macOS] - Powershell
- M1/M2 Mac VirtualBox Unsupported hardware architecture detected! - MacOS
- [Docker M1/M2 Mac] qemu-x86_64: Could not open /lib64/ld-linux-x86-64.so.2: No such file or directory AWS CLI - Docker
- wget Command on macOS Terminal - MacOS
- Android Parsing Data for android-L failed Unsupported major.minor version 51.0 Error - Android
- [Fix] java: integer number too large compilation error - Java
- Setting up Java JUnit Project with Eclipse + Maven Example - Java