Now, if you want to format the opened XML file, just select the "Format XML File" menu item under the "Advanced" menu. The "Capture Output" option in the Output tab, and finally click the "OK" button to complete the configuration.Ģ. "C:\Progra~1\IDMCom~1/UltraEdit-32\GNU\XMLlint.exe -format -output %f %f" Uncheck
Click the Advanced->Tool Configuration menu item, and click the "Insert" button in the pop-up dialog box, And then enter the name of the command menu in the "Menu Item Name" field (for example: "Format XML File"), and then enter the following command in the "Command Line" field: If you need to format the current XML file opened by the UE and directly output the result to the current file, you can do this:ġ. "This item, and then click the "Parse" button, the formatted result will appear in the Outpu window, if you need to get the formatted text, you can right-click on the Output window and select the "Copy To Clipboard" menu Item to copy the text to the clipboard for processing by other programs "Reformat and reindent the output, where indentaion is:" in the pop-up dialog box. Open the XML file that needs to be formatted, click the Format->XMLlint Tool menu item,Īnd select 2. The formatting method of the XML file is as follows:ġ. suppose the installation directory of the above UE is "C:\Program Files\IDM Computer Solutions\UltraEdit-32\" (Please modify the UE path mentioned below according to the actual situation).
ULTRAEDIT XML CODE
The following are the methods and general configuration of using these two tools to extend the UE editor to have the function of source code formatting:ġ. XMLlint-open source XML file command line parserĪStyle-open source source code formatting command line tool, now supported The languages are Java, C/C++ and C#. These source code formatting functions are implemented through two open source command line tools, they are: This function is relatively hidden, so ordinary users may not notice it. In UE, you can format and operate XML, Java, C/C++, and C# source code files. The two open source command line tools provided by UE can well complete the formatting of the source code of several popular programming languages. Can seem to make UE a fly in the ointment, but this is not the case. The most profound function of it is the column mode editing function, which does bring a lot of convenience to my work, but as a programming tool, it does not have the function of formatting source code. UE editor has always been a good helper for me to program and edit text.