Code to link
Pasting forty lines into a chat window helps nobody. A 2L link gives them the same code with highlighting, line numbers and a line you can point at.
Drag it here, paste it, or press to choose a file. 2L works out what it is and shows it properly.
Custom names, replacing contents and download controls are part of Plus. See the plans.
Not just somewhere to put it.
The link is the easy part. What matters is the page on the other end of it.
The language is worked out for you
From the file extension when there is one, and from the syntax when there is not — so a snippet pasted straight out of an editor still arrives highlighted.
Line numbers you can link to
Click a line number and the URL points at that line. Send someone “line 42” without saying “line 42”.
Raw is one click away
A raw view serves the exact text, so it can be piped into curl or fed to a tool without anything in between.
About code to link
Which languages are highlighted?
Can I share several files at once?
Does it run the code?
Is there an API?
The same box takes all of it.
There is no format menu anywhere in this product. These pages exist because people search for them, not because 2L works differently for each one.