HTMLIZE(1)

πŸ“¦ version 5.3, in nixos 26.05, nixpkgs unstable

✨ HTMLIZE(1) ✨

okay so bestie, you know that htmlize manual page? the one from the User Commands section? yeah, that one β€” let me tell you about it πŸ’…


πŸŽ€ NAME πŸŽ€

htmlize β€” literally converts a file into fancy HTML markup. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

htmlize [OPTION]... INFILE [OUTFILE [EMACS-MODE]]

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜•: htmlize fires up Emacs, loads INFILE into a buffer, then invokes a major mode to do its font locking thing, and renders that whole fontified buffer as HTML β€” then saves it into OUTFILE. iconic behavior honestly. πŸ‘‘

heads up: Emacs has to have htmlfontify.el installed in its load-path. non-negotiable, no cap.

if you don't specify OUTFILE, it just takes INFILE and slaps .html on the end. so convenient 🫢

if you don't specify EMACS-MODE, it uses compilation-mode. default queen behavior. ✨


πŸ’… OPTIONS πŸ’…

  • --emacs COMMAND β€” use whatever command you want to invoke emacs, like "emacs21". your emacs, your choice πŸ’œ
  • --mode MODE β€” fontify the file using the Emacs mode you name. defaults to "compilation-mode". e.g. "sh-mode". so you can make it match the file's whole personality 🌈
  • --debug β€” turns on Emacs Lisp debugging (debug-on-error). when things go wrong and you need to know why 😭
  • -f, --force β€” overwrite OUTFILE if it already exists, instead of exiting unsuccessfully with an error message. chaotic but make it efficient πŸ’€
  • -u, --update β€” only write to OUTFILE when OUTFILE doesn't exist, or when INFILE is more recent than OUTFILE. lowkey the responsible one 🧚
  • -h, --help β€” display this help and exit successfully. always here for you 🫢
  • --version β€” display version information and exit successfully. ✨

🌟 Environment variables: 🌟

  • EMACS β€” the Emacs editor command.

πŸ“ Simple example: πŸ“

htmlize mybuildlog.txt mybuildlog.html

see? ate. πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Written by Simon Josefsson. πŸ’–


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Report bugs to <bug-autobuild@josefsson.org>. they wanna hear it, fr fr.


Copyright Β© 2004, 2008, 2009, 2010 Simon Josefsson. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. ⚠️ like seriously, none.


okay that's the whole page bestie 🌸 β€” this was htmlize (autobuild) 5.3, dated July 2010, and that's the vibe check complete. periodt. πŸ’œπŸŽ€

πŸ“¦ where this page comes from