Created
February 22, 2013 20:17
-
-
Save jcanfield/5016262 to your computer and use it in GitHub Desktop.
View Remote Website source using Curl and Pygmentize (Command Line)
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