How to Get Notepad to Indent an XML

Use the encoded tab characters to get a plain text editor such as Notepad to indent tags and data. Notepad is included with each version of Windows, so you can use the software to create XML files. Notepad is typically used to create small, short XML files on a server or for testing purposes.

Instructions

    • 1

      Click the Windows "Start" button and type "notepad" in the search text box. Press "Enter" to open the Notepad editor.

    • 2

      Click the "File" menu item and select "Open." Double-click the XML file you want to edit to load the code in the editor.

    • 3

      Add the following characters in front of each section of the file you want to indent:

      	

      You can also use "\t" to designate a tab character, but use the above sequence for XML documents used in Web pages.

    • 4

      Click the "File" menu item, then click "Save" to save the changes to the file.

Related Searches:

References

Comments

Related Ads

Featured