OSDN Pastebin is a function what's usually called Pastebin and Code Snippets, and services provided by websites like pastebin.com are popularly used. You can share, distribute, and publish text files such as source code, a part of configuration file, ASCII art, and all other kinds of documents.
It is so easy to use. Here's how to do it. First, copy and paste the text file to where you want it embeded. Next enter the title and description, and choose the file format (such as plain text, ASCII art, programming language), publish mode, and period of publication. Once you click the register button, a pastebin page gets generated.
On the generated pastebin page, you can view the registered text file with line lumbers, and you can also view it in the syntax highlight format. Also, you can convert it to RAW expression, download text file, and create a new version of pastebin that quotes the text.
There are several ways to make the generated pastebin open to the public such as to embed iframe code, which will be provided on the pastebin page, in blogs for publicity, and use SNS like Twitter, Facebook, and Google+ to publicize the URL. It supports Twitter Cards, so you can make the title and description of the pastebin to be shown on the timeline. Besides the goal of simply sharing text, you can also use this to write longer text that may exceed the number of word limitation.
Below is an example of registering two kinds or Hello World progam as a pastebin, then use Wiki extension grammar to paste it. By clicking the title, you can jump to the pastebin page.
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
- <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
- <title>Hello, World!</title>
- <p>Hello, World!</p>
OSDN's pastebin can be used by both anonymous and login users. But there are a few limitations on anonymous users.