Skip to content

Instantly share code, notes, and snippets.

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