-header text/html
-cat - <<EOF
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
- <head>
- <title>vpaste.net - Vim based pastebin</title>
- <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
- <meta name="description" content="vpaste: Vim based pastebin" />
- <meta name="keywords" content="vpaste,paste,pastebin,vim" />
- <style type="text/css">
- * { margin:0; padding:0; }
- body { margin:1em; }
- h4 { margin:1em 0 0 0; }
- blockquote,dd,dl,p,pre,ul { margin:0 0 0 2em; }
- dt { font-weight:bold; padding:0.5em 0 0 0; }
- blockquote { width:50em; font-size:small; }
- span { font-family:monospace; }
- </style>
- </head>
- <body>
- <form id="form" method="post" action="?" enctype="multipart/form-data">
- <div style="margin:0 0 1.5em 0;">
- <input style="display:none" type="text" name="ignoreme" value="">
- <textarea name="text" cols="80" rows="25" style="width:100%; height:20em;"></textarea>
- <select onchange="document.getElementById('form').action =
- document.location + '?ft=' + this.value;">
- <option value="" selected="selected" disabled="disabled">Filetype</option>
- <option value="">None</option>
- $(for ft in $filetypes; do
- echo "<option>$ft</option>"
- done)
- </select>
- <input type="submit" value="Paste" />
- </div>
- </form>
+ header text/html
+ cat <<-EOF
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+ <head>
+ <title>vpaste.net - Vim based pastebin</title>
+ <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
+ <meta name="description" content="vpaste: Vim based pastebin" />
+ <meta name="keywords" content="vpaste,paste,pastebin,vim" />
+ <style type="text/css">
+ * { margin:0; padding:0; }
+ body { margin:1em; }
+ h4 { margin:1em 0 0 0; }
+ blockquote,dd,dl,p,pre,ul { margin:0 0 0 2em; }
+ dt { font-weight:bold; padding:0.5em 0 0 0; }
+ blockquote { width:50em; font-size:small; }
+ span { font-family:monospace; }
+ </style>
+ </head>
+ <body>
+ <form id="form" method="post" action="?" enctype="multipart/form-data">
+ <div style="margin:0 0 1.5em 0;">
+ <input style="display:none" type="text" name="ignoreme" value="">
+ <textarea name="text" cols="80" rows="25" style="width:100%; height:20em;"></textarea>
+ <select onchange="document.getElementById('form').action =
+ document.location + '?ft=' + this.value;">
+ <option value="" selected="selected" disabled="disabled">Filetype</option>
+ <option value="">None</option>
+ $(for ft in $filetypes; do
+ echo "<option>$ft</option>"
+ done)
+ </select>
+ <input type="submit" value="Paste" />
+ </div>
+ </form>