Tuesday, July 14, 2015


Have you ever wanted to display code or script in your blog? Here's how to using PasteBin. Guests are able to download your code also which is useful if it's  script or something like that.

Go to Pastebin.com.

Select "create new paste".

Paste or type in your code.

Give it a title, make sure it's public, and choose your syntax. Optional: Set an expiration date.

Click "submit".

Click "embed".

Copy the Javascript embed code. Example:
<script src="http://pastebin.com/embed_js.php?i=kP7aCCS3"></script>

Go to your post where you want to embed the code, click HTML, and paste the embed code.

Go back to compose mode and there should be a space where the code is located. You will not be able to see the code while you are composing the post, so click preview if you would like to see how the code is displayed.

Publish your post and the code will be displayed. Here's an example:

That's it. 

4 comments:

  1. Even when friends aren’t in the same place, it’s still easy to stay connected thanks to games to play with friends online. These games turn simple conversations into fun experiences and keep everyone engaged. It feels like hanging out together, even when everyone is far away.

    ReplyDelete
  2. Slot games on Khelraja are engaging and well-designed. The platform focuses on user comfort and smooth navigation. I appreciate the balance between fun and responsible betting. Each game feels fresh, and the overall experience is simple yet rewarding. It’s suitable for both casual players and experienced users.

    ReplyDelete
  3. NGO Experts made the 12A registration process simple and stress-free. Their team explained every step in clear language and handled all legal work on time. I truly appreciated their professionalism, quick responses, and supportive approach. A reliable company for NGOs seeking smooth and hassle-free 12A registration services.

    ReplyDelete
  4. Startup Registration allows newly formed and innovative businesses to receive recognition under the Startup Registration framework. Eligible startups must focus on innovation, improvement, or scalable business models. Once registered, startups can benefit from simplified compliance, funding opportunities, and various government-led support programs. This registration strengthens business identity, builds trust among investors, and provides structured support during early growth stages.

    ReplyDelete

Subscribe to RSS Feed Follow me on Twitter!