XOHTML(1)

πŸ“¦ version 1.7.5, in epel 9, fedora 43, fedora 44, nixpkgs unstable

🌸 XOHTML(1) 🌸

okay so bestie, welcome to the General Commands Manual entry for xohtml πŸ’– β€” pull up a chair, grab a boba, and let's get into it, because this little tool is lowkey iconic and you're gonna be obsessed.


✨ NAME ✨

xohtml β€” display libxo html output from xo_emit(3) πŸ¦‹


✨ SYNOPSIS ✨

xohtml [-b <base>] [-c -<command>"] [-f -<output>] [-w]
       [command [argument ...]]

✨ DESCRIPTION ✨

So xohtml is this tool for preparing libxo(3) HTML output for display in modern HTML web browsers, fr fr. πŸ’…

And the way it works? It's got two modes, bestie, two whole vibes:

  • If a command is provided β€” either with the -c option or as argument(s) to the xohtml command β€” that command is executed and the resulting output is processed. πŸ‘‘
  • If no command is given, the standard input is used. 🫢

xohtml is typically used to wrap libxo output with sufficient HTML content to allow display in a web browser. This includes parent HTML tags as well as CSS stylesheets and Javascript files. It's giving glow-up, honestly. ✨

If the command is given directly on the command line, xohtml will add the --libxo=html option needed to generate HTML output from libxo-enabled applications. See xo_options(7) for details. πŸ“š

The following options are available:

πŸŽ€ OPTIONS πŸŽ€

  • -b base, --base base β€” Supplies a source path for the CSS and Javascript files referenced in the output of xohtml. πŸ—‚οΈ
  • -c command, --command command β€” Use the given command instead of one on the command line. This command should be quoted if it consists of multiple tokens, and should contain the --libxo=html option or equivalent, since the command is used directly. ⚠️ like, don't skip the --libxo=html, it matters bestie
  • -f file, --file file β€” Output is saved to the given file, rather than to the standard output descriptor. πŸ’Ύ
  • -w, --web β€” Uses the official libxo website URL as the source path for the CSS and Javascript files referenced in the output of xohtml. 🌈

✨ EXAMPLES ✨

Exhibit A πŸ“ β€” the following command line will run du --libxo=html ~/src and save the output to /tmp/src.html:

xohtml du ~/src > /tmp/src.html

Exhibit B 🧚 β€” the following command line will run du --libxo=html,warn ~/src and save the output to /tmp/src.html:

du --libxo=html,warn ~/src | xohtml -f /tmp/src.html

Exhibit C πŸ’œ β€” the following command line will run du --libxo=html,warn ~/src and save the output to /tmp/src.html:

xohtml -c "du --libxo=html,warn ~/src" -f /tmp/src.html

three whole ways to do the exact same slay thing, and every one of them eats πŸ”₯


✨ SEE ALSO ✨

libxo(3), xo_emit(3), xo_options(7) πŸ‘€ iykyk


✨ ADDITIONAL DOCUMENTATION ✨

FreeBSD uses libxo version 1.7.5. Complete documentation can be found on github: πŸ“–

https://juniper.github.io/libxo/1.7.5/html/index.html

libxo lives on github as:

https://github.com/Juniper/libxo

The latest release of libxo is available at:

https://github.com/Juniper/libxo/releases

✨ HISTORY ✨

The libxo library was added in FreeBSD 11.0. πŸ•°οΈ a classic, honestly


✨ AUTHOR ✨

Phil Shafer 🌟


and that's the whole page, bestie β€” this one came to you from Debian, dated December 4, 2014, filed under XOHTML(1). go forth and wrap some HTML, mwah πŸ’‹

πŸ“¦ where this page comes from