Code mode

Share code snippets that don’t live in chat forever

Paste a function, a config file or a stack trace. Your teammate gets syntax highlighting, line numbers and one-click copy, and the link expires when you say.

Self-destructs
views
● 1 view then gone AES-256 at rest 0 / 32,768 bytes

What the person you send it to gets

Nothing you paste is ever run. HTML, JavaScript and shell commands are shown as text, never executed in the reader’s browser.

Why not paste it straight into Slack or Teams?

Chat apps are built for conversation, not code. Long snippets collapse behind “show more”, some clients turn straight quotes into curly ones, and a pasted config file becomes part of the channel’s searchable history for as long as the workspace keeps messages. With TxtVanish, the chat carries a short link and the code lives somewhere with proper formatting and an end date.

Config files, .env and keys

Onboarding a developer often means handing over a .env file full of database URLs and API keys. Paste it into the Code tab, choose INI / .env or leave it on auto-detect, and set it to 1 view. If the file holds live secrets, also switch on a link password and tell it to them on a call. Rotate the keys once the person no longer needs them.

For a single password or token rather than a whole file, see sharing a password with a one-time link.

Logs and stack traces

Text is limited to 32 KB, which fits a long stack trace or a few hundred lines of log. For a full log file, attach it instead: one file of up to 10 MB per message, deleted after 7 days. Paste the interesting part as text so the reader can see it straight away, and attach the rest.

Supported languages

GroupLanguages
WebJavaScript, TypeScript, HTML / XML, CSS, PHP, JSON
Backend and systemsPython, Go, Rust, Java, Kotlin, C, C++, C#, Ruby, Swift
Data and configSQL, YAML, INI / .env, Markdown
Shell and toolingBash / Shell, Diff

Anything else still displays cleanly as plain text with line numbers.

Code that changes

Code links are fixed once created. For something you’ll keep updating, such as setup instructions or a checklist, create an editable note instead. It’s plain text, but you can change it from your sender link and everyone with the link sees the latest version.

Questions

Which languages get syntax highlighting?

Bash, C, C++, C#, CSS, Diff, Go, INI and .env, Java, JavaScript, JSON, Kotlin, Markdown, PHP, Python, Ruby, Rust, SQL, Swift, TypeScript, HTML/XML and YAML. Leave it on Auto-detect and TxtVanish picks the best match.

Is my code shown exactly as I pasted it?

Yes. Spaces, tabs and line breaks are kept, and nothing is ever run. HTML and scripts are displayed as text, not executed.

Can I edit a code snippet after sharing it?

Code links can’t be edited. Create a new one, or use an Editable note for text you expect to change.

How much code can I share?

Up to 32 KB of text, which is roughly 800 lines of typical code. For full log files or larger sources, attach the file (up to 10 MB).