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.

Revisions

  1. og-shawn-crigger revised this gist Jun 9, 2013. No changes.
  2. @jcanfield jcanfield created this gist Feb 22, 2013.
    9 changes: 9 additions & 0 deletions viewsource.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/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