Created
August 13, 2021 11:13
-
-
Save Hermann-SW/02d4718af35781023b4b66f47fa2f81d to your computer and use it in GitHub Desktop.
TOhtml tool with dark background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
vim -c "set background=dark" $1 +TOhtml +w +q +q | |
sed "s/^\(body.*\)color: #ffffff.*/\1color: #000000; background-color: #ffffff; }/;"\ | |
"s/^<body>/<body><table border=1><tr><td>/;"\ | |
"s/^<\/body>/<\/td><\/tr><\/table><\/body>/"\ | |
$1.html -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.raspberrypi.org/forums/viewtopic.php?f=33&p=1901287#p1901287
Screenshot of example HTML output: