Tools

Compare two pastes

Diff any two paste ids side by side.

Open diff tool

Supported syntaxes

  • None text
  • Bash / Shell bash
  • C c
  • C++ cpp
  • C# csharp
  • CSS css
  • Diff diff
  • Go go
  • HTML html
  • Java java
  • JavaScript javascript
  • JSON json
  • JSX jsx
  • Kotlin kotlin
  • Lua lua
  • Markdown markdown
  • PHP php
  • PowerShell powershell
  • Python python
  • Ruby ruby
  • Rust rust
  • SQL sql
  • Swift swift
  • TOML toml
  • TSX tsx
  • TypeScript typescript
  • XML xml
  • YAML yaml

Command line

# create a paste from a file
curl -s -X POST https://pragalbha.xyz/api/pastes \
  -H 'content-type: application/json' \
  --data-binary @<(jq -Rs --arg t "notes" '{content: ., title: $t}' notes.txt)

# read it back as plain text
curl -s https://pragalbha.xyz/raw/<id>