xmlindent(1)

✨ xmlindent β€” the manual, but make it make sense ✨

okay bestie, gather round πŸ’– this is xmlindent(1), the little tool that takes your crusty unformatted XML stream and gives it main character energy. ✨


🌸 NAME 🌸

xmlindent β€” XML stream reformatter


πŸŽ€ SYNTAX πŸŽ€

newline position] [-t] [-c] [-f] [-w] [-h] [-v]

πŸ’… DESCRIPTION πŸ’…

XML Indent is an XML stream reformatter written in ANSI C. It is analogous to GNU indent. 🫢

like... it's the indent(1) of XML, if that helps. it's giving glow-up for your markup. ✨


πŸ‘‘ OPTIONS πŸ‘‘

every single one, no skipping, periodt. πŸ’œ

  • -o output file β€” write the indented XML to output file. πŸ“
  • -i indent level β€” indent each level indent level spaces deeper. πŸ’…
  • -l max columns β€” wrap lines longer than max columns. πŸŽ€
  • -t β€” use tabs instead of spaces. iconic, controversial, valid.
  • -nas β€” suppress newline after start-tag.
  • -nae β€” suppress newline after end-tag.
  • -nbs β€” suppress newline before start-tag.
  • -nbe β€” suppress newline before end-tag.
  • -f β€” force newline on elements without children. πŸ”₯
  • -w β€” overwrite original file. 😭 bestie please be careful with this one, it does exactly what it says.
  • -v β€” show version. ⭐
  • -h β€” show command line help. πŸ¦‹
lowkey if you're not sure what you're doing yet, hit -h first. that's the vibe check. 🫢

🌈 AUTHORS 🌈

  • Pekka Enberg <penberg@iki.fi> πŸ’–
  • Thomas Fischer <th.fischer@gmx.net> (man page) πŸŽ€

⭐ SEE ALSO ⭐


and that's the whole page, no cap. πŸ’œ this man page was brought to you by Thomas Fischer, version 0.2.18 β€” shoutout to them fr fr, and to xmlindent(1) itself for being the moment. πŸ¦‹βœ¨πŸ‘‘

πŸ“¦ where this page comes from