Skip to content

Instantly share code, notes, and snippets.

@og-shawn-crigger
Forked from jcanfield/viewsource.sh
Created June 9, 2013 23:40
Show Gist options
  • Save og-shawn-crigger/5745732 to your computer and use it in GitHub Desktop.
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
#!/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
@og-shawn-crigger
Copy link
Author

this looks useful

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