Sunday 18 August 2013

computer formatin solution

ormatting XML Postby torihana » Thu Apr 14, 2005 5:30 pm Hi, can UltraEdit format XML document? for example, HELLO would be CODE: SELECT ALL HELLO I am the registered user of UltraEdit 9 and was wondering if there is a way to do above... thanks in advance User avatar torihana Newbie Posts: 1 Joined: Wed Apr 13, 2005 11:00 pm Top Re: Formatting XML Postby vel1 » Fri Apr 15, 2005 12:59 pm You can use Tidy for formatting. I have following perl script asigned to tools, but guess you can also use bat or wsh : Command line : perl -w C:\bin\xmlformat.pl "%f" ================ C:\bin\xmlformat.pl ================ #!perl -w # Name: xmlformat.pl # # Use tidy to change input file and make bak # Usage: xmlformat.pl xmlfile.xml use strict; use File::Copy; die "No args...\n" unless 0==$#ARGV; my $xmlfile = shift; die "Could not copy $xmlfile. $!\n" unless copy($xmlfile, "$xmlfile.bak"); my @args = ('C:\\bin\\tidy.exe', '-m', '-xml', '-q', '-i', $xmlfile); system(@args) == 0 or die "system @args failed: $?" Regards, vel User avatar vel1 Newbie Posts: 1 Joined: Thu Feb 10, 2005 12:00 am Top Re: Formatting XML Postby diedelie » Mon Aug 01, 2005 2:41 pm vel, thank you for the hint to Tidy. As a non Perl programmer I'm now using an Ultraedit Tool configuration with the Command Line: cmd /c if /I "%E"==".XML" (E:\schlereth\tools\tidy\tidy-050522-exe\tidy.exe -m -xml -i "%F") else (echo NO XML File) and Command Output (DOS Commands) to List Box, Capture Output. User avatar diedelie Newbie Posts: 2 Joined: Sun Jul 31, 2005 11:00 pm Top Re: Formatting XML Postby g921 » Mon Aug 29, 2011 8:24 am Hi, UltraEdit v17 does it (maybe previous releases too): a) select the desired text, b) in the main menu, select "Paragraph Formatting"+"ReIndent Selection", the result is here as the result of an XML beautifuller output Regards Bonjour, UltraEdit v17 le fait (peut être d'autres versions précédentes également): a) sélectionner le texte désiré, b) dans le menu principal, sélectionner "Formatage du paragraphe"+"Indenter de nouveau la sélection", le résultat est là, identique à la sortie d'un embellisseur XML Cordialement g921 Newbie Posts: 1 Joined: Mon Aug 29, 2011 8:17 am Top Re: Formatting XML Postby bulgrien » Wed Aug 31, 2011 10:01 pm Wow, you really dug up an old post to respond to. The easiest way to handle the original post in the current version of UltraEdit is with the drop-down menu option: Format -> XML Convert to CR/LFs User avatar bulgrien Master Master Posts: 92 Joined: Fri Dec 11, 2009 1:02 am Location: Pennsylvania, USA

No comments:

Post a Comment