HTMLIZE(1)
β¨ 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 β
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
- nixos 26.05: autobuild 5.3
- nixpkgs unstable: autobuild 5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms