Pastebin alternative
Paste code, pick a link, share it. Your code shows highlighted, with line numbers and a copy button.
- Free
- Line numbers
- Your own link
- Highlighted
What people see when they open your link
paste.page/csv-totals · Python · 9 lines
import csv
def totals(path):
sums = {}
with open(path) as f:
for row in csv.DictReader(f):
k = row["category"]
sums[k] = sums.get(k, 0) + float(row["amount"])
return sumspaste page vs Pastebin
| Feature | paste.page | Pastebin |
|---|---|---|
| Choose your own link | Yes | Random ID |
| HTML can also run as a page | Yes, from the homepage | No |
| Syntax highlighting | Yes | Yes |
Questions
- Is there a free alternative to Pastebin?
- Yes. Paste your code here, choose a link name you can remember, and share it. It's free.
- Which languages are highlighted?
- The common ones, including Python, JavaScript, HTML, CSS, SQL, JSON and Bash. The language is detected for you.
- Can I paste HTML and see it as a web page?
- Yes. Here it shows as code. To run it as a page, use the paste box on the homepage.
- How do I keep a paste?
- Sign up free to keep your first link; Pro keeps up to 10.
Or start from the paste.page home.