Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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

1 Answer 1

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

http://lvildosola.blogspot.com/2007/02/code-snippet-plugin-for-windows-live.html

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

 
discard

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.