rupa / sprunge

command line pastebin for google appengine
http://sprunge.us
724 stars 70 forks source link

Minor changes to improve the usability of sprunge #3

Closed msmorgan closed 11 years ago

msmorgan commented 11 years ago

This request includes three commits, each with a minor change.

The first, and arguably most important, is to use "table" line-numbering mode from Pygments. This allows the user to select the pasted code without highlighting unwanted line numbers along with it.

The second adds a link to the following data URI to the description section.
data:text/html,<title>sprunge</title><form action="http://sprunge.us" method="POST"><textarea name="sprunge" cols="80" rows="24"></textarea><br><button type="submit">sprunge</button></form>
This allows the user to submit a paste to sprunge from the browser. While this may be counter to sprunge's purpose as a command-line highlighter, it may be useful in some situations.

The third is a minor punctuation fix, which I changed because it was bugging me. ;)

Thanks for making and hosting sprunge It's hugely popular in the Arch Linux IRC channel.

rupa commented 11 years ago

2 out of 3 added. Thanks. Reopen if you want to argue about the inline/tables thing :)