michaelschade/paste2upload
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Copyright (c) 2009 Michael Schade. Distributed under the MIT License
For more information see paste2's LICENSE file or visit
http://www.mschade.me/projects/paste2upload/.
Licensing and copyright information must stay with this code at
all times. Notification via my website (http://www.mschade.me/)
of your projects using this code is always appreciated but
never required.
Paste2 is an independent service not provided by Michael Schade.
No service guarantees can be made on behalf of Paste2 or its
dependencies by Michael Schade. Any issues, questions, comments,
or concers regarding the service should be directed to Paste2 only.
Usage ./paste2.py [-h, --help] [-d, --description] [-l, --language syntax code] [file]:
All arguments are optional.
-h, Outputs this information. Must be supplied as the first and only argument.
--help
-d desc, A description to be displayed alongside the pasted content.
--description desc
-l code, The language to use for syntax highlighting. See below for a list of available highlights.
--language code
Language Code Description
------------- -----------
text Plain Text / Other [Default]
actionscript Actionscript
ada Ada
apache Apache Config
applescript AppleScript
asm Assembly
asp ASP
bash Bash
c C
cfm Cold Fusion
cpp C++
csharp C#
css CSS
d D
delphi Delphi
diff UNIX Diff
eiffel Eiffel
fortran Fortran
html4strict HTML 4 Strict
ini Ini
java Java
java5 Java5
javascript Javascript
latex LaTeX
lisp LISP
lua Lua
matlab MATLAB
mysql MySQL
perl Perl
php PHP
python Python
qbasic QBasic / QuickBASIC
robots Robots
ruby Ruby
sql SQL
tcl TCL
vb Visual BASIC
vbnet VB.NET
winbatch Winbatch
xml XML
[file, -], Pastes supplied text to http://paste2.org/. Specify - for stdin.