Skip to content

Instantly share code, notes, and snippets.

@Hermann-SW
Created August 13, 2021 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hermann-SW/02d4718af35781023b4b66f47fa2f81d to your computer and use it in GitHub Desktop.
Save Hermann-SW/02d4718af35781023b4b66f47fa2f81d to your computer and use it in GitHub Desktop.
TOhtml tool with dark background
#!/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
@Hermann-SW
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment