robburke.NET
© 2009 Robert Burke
All Rights Reserved.

I would be very grateful for any advice on how to paste code from Visual Studio into a WordPress post.  I have never found a plug-in or cut-and-paste pipeline that worked well for me.

[Edit 25 Sept 08 - I still haven't found a plug-in that works for me. But thanks to Sujeeth I have discovered pastebin.com, which for now looks like it's what I will want to use.]

Possibly Related Articles

  1. WPF Developer Tools I Can’t Code Without
  2. Ireland’s Call – Source Code
  3. O# at the Movies

6 Responses to “Pasting code into WordPress easily?”

  1. Rob Allen 4th Aug 2008 @ 4:19 pm

    Hey Man, not sure if you have already “googled” it, but someone asked me this before, I have not used wordpress, gonna move to it soon so I was looking at stuff like this and I found this

    http://fluxcapacity.net/2007/07/22/one-solution-to-wordpress-code-snippet-formatting-problems/

    A friend said that one or more of these solutions worked well.
    Also if you need quick text macros and ways of changing space and tab characters , I use Notepad++, nice ways way of getting stuff done.

  2. Rob Burke 5th Aug 2008 @ 11:28 am
  3. Rob Allen 5th Aug 2008 @ 11:58 am

    Hmmm, might be the perpetual battle between tab and the 4 spaces thing, is there a way of replacing all tabs with non breaking spaces ?
    I am prob preaching to the master here, but I intend to do the same thing soon and I am intersted in the outcome of this.

    The code looks ok in the other 2 posts, but yea, the indentation thing is a bit of a downer.

  4. Sujeeth 25th Sep 2008 @ 8:20 am

    You can use pastebin.com to paste your code as it displays in Visual Studio.
    See my post http://technobuff.wordpress.com/2008/03/25/moss-2007-maintenance-and-trace-logs-removal/

  5. Rob Burke 25th Sep 2008 @ 9:56 am

    Sujeeth – I would have thought some Visual Studio add-in would work best – but that is the best solution I’ve found so far. Thank you very much for introducing me to pastebin.com!

  6. [...] to this posting, I discovered pastebin.com.  It does a nice job of converting source code into html.  And it has [...]

Trackback URI | Comments RSS

Leave a Comment