prettyprint.rst
changeset 2285 41b2a3652b35
parent 2228 837f1337c59b
equal deleted inserted replaced
2284:72b8dfbe3f82 2285:41b2a3652b35
    46 
    46 
    47 With xmllint::
    47 With xmllint::
    48 
    48 
    49   $ xmllint --format file.xml
    49   $ xmllint --format file.xml
    50 
    50 
    51 or in Emacs::
    51 Pretty print XMLs in place::
       
    52 
       
    53   for f in *.xml; do xmllint -o $f --format $f; done
       
    54 
       
    55 In Emacs::
    52 
    56 
    53   : C-x h C-u M-| xmllint --format - <RET>
    57   : C-x h C-u M-| xmllint --format - <RET>
    54 
    58 
    55 With Emacs and nxml you need introduce line-breaks and then::
    59 With Emacs and nxml you need introduce line-breaks and then::
    56 
    60