-
-
Save og-shawn-crigger/5745732 to your computer and use it in GitHub Desktop.
Bash script to view source of url entered with pygmentized syntax highlighter
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 | |
# View Website source with syntax highlighting via Pygmentize | |
echo "Viewing Source for $1" | |
read -p "USAGE: viewsource http://www.website.com/ (Press Enter To Continue)" | |
curl -s "$1" | pygmentize -f terminal256 -l html -O style=monokai | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this looks useful