login about faq

I'm looking for a blog platform that will allow me to paste and share code snippets. I would also want to use my own domain with it. What are my choices?

asked Feb 23 '10 at 10:12

leypascua's gravatar image

leypascua
1.6k115

edited Feb 23 '10 at 13:24

Randell's gravatar image

Randell ♦♦
1.6k1529


I personally use WordPress with SyntaxHighlighter Evolved plugin... but then again, I don't post that much code in my site. :p

link

answered Feb 23 '10 at 11:17

Bryan%20Bibat's gravatar image

Bryan Bibat
2.6k119

I use Wordpress plus the WP-Syntax plugin.

WP-Syntax provides clean syntax highlighting using GeSHi -- supporting a wide range of popular languages. It supports highlighting with or without line numbers and maintains formatting while copying snippets of code from the browser.

To use it, you simply have to wrap code blocks in <pre lang="LANGUAGE" line="1"> and </pre>. Here's a sample from the plugin page:

<pre lang="php">
<div id="foo">
<?php
  function foo() {
    echo "Hello World!\\n";
  }
?>
</div>
</pre>

Of course, after publishing the post, the highlighted part is code inside the <pre> tags. It also supports many different languages.

link

answered Feb 23 '10 at 13:22

Randell's gravatar image

Randell ♦♦
1.6k1529

+1 for Wordpress. The plugin I use for posting sources is called Syntax Highlighter Plus.

link

answered Feb 23 '10 at 13:59

paul_sns's gravatar image

paul_sns
1.7k116

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3
×3
×1

Asked: Feb 23 '10 at 10:12

Seen: 757 times

Last updated: Feb 23 '10 at 13:59