New paste Use cases Explore public pastes Text tools Developer API The Paste Library Security Sign in with Google

Pastebin syntax highlighting for 60+ languages

Choose a language or text format to make source easier to scan while preserving the exact submitted text behind copy and raw views.

Quick choice:

If one syntax mode does not clearly fit, use the plain-text paste guide. Highlighting should help people read the artifact; it should never guess at mixed content or imply that code was validated.

Practical code-sharing guides

These curated pages explain the context, redaction checks, and paste settings that matter for each language - Not only the color theme.

Aa

Plain text sharing guide

General notes, prose, and mixed output.

Read the Plain text guide →
py

Python sharing guide

Scripts, tracebacks, and data workflows.

Read the Python guide →
js

JavaScript sharing guide

Browser and Node.js snippets.

Read the JavaScript guide →
</>

TypeScript sharing guide

Typed web application code.

Read the TypeScript guide →
</>

JSON sharing guide

API payloads and structured fixtures.

Read the JSON guide →
</>

YAML sharing guide

Configuration and deployment manifests.

Read the YAML guide →
</>

Bash / Shell sharing guide

Commands, scripts, and terminal output.

Read the Bash / Shell guide →
</>

SQL sharing guide

Queries, schemas, and query plans.

Read the SQL guide →
</>

HTML sharing guide

Markup and document fragments.

Read the HTML guide →
</>

CSS sharing guide

Stylesheets and layout examples.

Read the CSS guide →
</>

Java sharing guide

JVM applications and stack traces.

Read the Java guide →
</>

C# sharing guide

.NET snippets and diagnostics.

Read the C# guide →
</>

C / C++ sharing guide

Native code and compiler output.

Read the C / C++ guide →
</>

Go sharing guide

Services, tools, and goroutine traces.

Read the Go guide →
</>

Rust sharing guide

Systems code and compiler diagnostics.

Read the Rust guide →
</>

Markdown sharing guide

README content and formatted notes.

Read the Markdown guide →
</>

Diff sharing guide

Patches and change review.

Read the Diff guide →
</>

XML sharing guide

Documents, feeds, and configuration.

Read the XML guide →
</>

Terraform sharing guide

Infrastructure as code.

Read the Terraform guide →
</>

HTTP sharing guide

Requests, responses, and headers.

Read the HTTP guide →

Highlighting improves reading, not validation

A syntax mode identifies tokens for display. It does not compile code, validate configuration against an application schema, or make untrusted source safe to execute.

  • Choose the closest single language.
  • Use plain text for mixed or ambiguous output.
  • Use the raw URL when exact text matters to a tool.

Formatting and privacy are separate choices

Language selection never changes who can access a paste. Start unlisted, choose a task-sized expiration, remove sensitive values, and use client-side encryption when server-readable storage is inappropriate.

Compare paste privacy controls →

Additional supported syntax modes

These modes are available directly in the editor. They are listed here for feature discovery, but do not link to thin guide URLs or compete with the reviewed language pages above.