Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to post on my blog some syntax highlighted code. Sites like PasteBin allows you to do this, but they don't provide the HTML code hassle-free.

Instead they suggest you to embed tags like this:

<script src="http://pastebin.com/embed_js.php?i=5GmRZ18V"></script>

Which are converted into the desired HTML at runtime.

Is there any such tool that exports the HTML for pasting on my blog (without javascript nor iframes)?

share|improve this question
Do the html styles need to be inline (e.g. <span style="font-weight:bold; color:blue">i</span>) or is importing/creating a stylesheet fine (e.g. <span class="variable">i</span>)? – Senseful Jan 5 '11 at 17:27
@Senseful importing a stylesheet is fine – Jader Dias Jan 5 '11 at 18:30

If you use windows live writer for your blog then there is a plugin available. More info


If you don't you could add the additional style sheet to your site and just use the plugin for formatting before pasting into a post (just use wlw :P)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.