
Let’s implement the auto-indentation of the HTML code below. This will format or indent HTML code in a nice format. Or use the shortcut key, Ctrl+Alt+Shift+B. To enable the XML tools plugin, go to Plugins, click on XML tools and click/check Pretty print. Īfter installation is finished, Notepad++ will reopen.Ĭheck the XML tools and click on the Install option.Īfter clicking on Install, it will ask for permission to restart Notepad++ and install the XML tools plugin.There will be a search bar in the Available tab. Īnother window will open with the Available, Update, and Install tabs.First, go to Plugins in the menu bar of Notepad++.We have to install this plugin and restart the Notepad++ to use it. We can use the XML tools plugin in Notepad++ to get the feature of indentation. Therefore, we have to install a plugin to get indentation or code auto-format feature.

Notepad++ does not have a feature of indentation by default. Use the XML tools Plugin to Indent the HTML Code in Notepad++ The tutorial guides through the installation of the plugin and demonstrates its use. The tutorial will introduce a plugin, XML tools, allowing us to format or indent HTML code in Notepad++.
:max_bytes(150000):strip_icc()/what-is-an-xml-file-2622560-6c5d9bfe9b3b4e0db6c78b3c5b3e176b.png)
Make sure you don't have any of the four XMLTools.dll dependencies sitting in the plugins directory! The plugins directory is only for actual Notepad++ plugins any other DLLs sitting in the plugins directory will be dynamically loaded by Notepad++ and attempted to be activated as plugins. Make sure you don't have XMLTools.dll sitting in the base directory where the notepad++.exe lives. The bitness of the DLLs and the bitness of notepad++.exe must match (32-bit to 32-bit, or 64-bit to 64-bit). If your Notepad++ is a 32-bit executable, you must not have 64-bit DLLs (or vice versa). When you get into this kind of scenario, you have probably done the install of the required dependencies wrong.
