Blog Recommendations? [modified]
-
Hey everybody, I am trying to start a coding blog - I'm going to be posting C# code mostly. So far I have had issues with posting source code on blog engines. Both Blogger and WordPress make a complete mess of it: - Blogger preview window works correctly, but when I publish it, my formatting all gets lost. - WordPress adds random line breaks when I paste any code in from VS, so I have to spend ages reformatting Does anybody know of a free online blog service which I can use which is good for posting source code onto? Bonus points if it can read directly from Word, where I do my drafts. Thanks in advance, Chris [Edit] Thanks to all who responded - I have gone with Kevin's suggestion but using Wordpress rather then Blogger for better formatting. If anybody is interested in seeing the formatted results, send me a message and I will give you the URL, however I'm not going to post a link in the lounge as my flame proof suit is at the dry cleaners this week. [/Edit]
modified on Sunday, February 22, 2009 1:59 PM
No, but you could use this to help you with the formatting: http://www.manoli.net/csharpformat/[^]
-
Hey everybody, I am trying to start a coding blog - I'm going to be posting C# code mostly. So far I have had issues with posting source code on blog engines. Both Blogger and WordPress make a complete mess of it: - Blogger preview window works correctly, but when I publish it, my formatting all gets lost. - WordPress adds random line breaks when I paste any code in from VS, so I have to spend ages reformatting Does anybody know of a free online blog service which I can use which is good for posting source code onto? Bonus points if it can read directly from Word, where I do my drafts. Thanks in advance, Chris [Edit] Thanks to all who responded - I have gone with Kevin's suggestion but using Wordpress rather then Blogger for better formatting. If anybody is interested in seeing the formatted results, send me a message and I will give you the URL, however I'm not going to post a link in the lounge as my flame proof suit is at the dry cleaners this week. [/Edit]
modified on Sunday, February 22, 2009 1:59 PM
I started a tech blog a couple of months ago and I went with Blogger + Windows Live Writer (quite a good app. from MS, although I don't know what the 2009 version is like) + "Paste from Visual Studio" plugin. I find it a reasonable combination, although I still had to fiddle about with ensuring code was not cut off to the right. I think there are better solutions out there but this combination requires comparatively low effort.
Kevin
-
No, but you could use this to help you with the formatting: http://www.manoli.net/csharpformat/[^]
-
Hey everybody, I am trying to start a coding blog - I'm going to be posting C# code mostly. So far I have had issues with posting source code on blog engines. Both Blogger and WordPress make a complete mess of it: - Blogger preview window works correctly, but when I publish it, my formatting all gets lost. - WordPress adds random line breaks when I paste any code in from VS, so I have to spend ages reformatting Does anybody know of a free online blog service which I can use which is good for posting source code onto? Bonus points if it can read directly from Word, where I do my drafts. Thanks in advance, Chris [Edit] Thanks to all who responded - I have gone with Kevin's suggestion but using Wordpress rather then Blogger for better formatting. If anybody is interested in seeing the formatted results, send me a message and I will give you the URL, however I'm not going to post a link in the lounge as my flame proof suit is at the dry cleaners this week. [/Edit]
modified on Sunday, February 22, 2009 1:59 PM
When you copy/paste code this is what you need to do for Wordpress. 1. Copy from Visual Studio 2. Paste into Notepad 3. Search/Replace [tab] with[4-spaces] 4. Copy from Notepad 5. Paste into Wordpress
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link -
I started a tech blog a couple of months ago and I went with Blogger + Windows Live Writer (quite a good app. from MS, although I don't know what the 2009 version is like) + "Paste from Visual Studio" plugin. I find it a reasonable combination, although I still had to fiddle about with ensuring code was not cut off to the right. I think there are better solutions out there but this combination requires comparatively low effort.
Kevin
-
When you copy/paste code this is what you need to do for Wordpress. 1. Copy from Visual Studio 2. Paste into Notepad 3. Search/Replace [tab] with[4-spaces] 4. Copy from Notepad 5. Paste into Wordpress
Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
My latest book : C++/CLI in Action / Amazon.com link -
This produces nice code on its own, but somehow Blogger and Wordpress *still* manage to mess it up. Worth looking at for when I get fed up and just build my own engine though! Thanks, Chris
c2423 wrote:
Worth looking at for when I get fed up and just build my own engine though!
If you do get to that point, check out the engine Marc Clifton wrote and <shameless plug> the one I wrote </shameless plug>.
-
I started a tech blog a couple of months ago and I went with Blogger + Windows Live Writer (quite a good app. from MS, although I don't know what the 2009 version is like) + "Paste from Visual Studio" plugin. I find it a reasonable combination, although I still had to fiddle about with ensuring code was not cut off to the right. I think there are better solutions out there but this combination requires comparatively low effort.
Kevin
Kevin, I just finished uploading my first full post - I used a similar setup to your suggestion. I tried both Wordpress and Blogger, and found that I get far fewer layout problems with Wordpress - perhaps you might look at it to save yourself some time reformatting code. Anyway, thanks again for the suggestion. Chris
-
c2423 wrote:
Worth looking at for when I get fed up and just build my own engine though!
If you do get to that point, check out the engine Marc Clifton wrote and <shameless plug> the one I wrote </shameless plug>.
-
Hey everybody, I am trying to start a coding blog - I'm going to be posting C# code mostly. So far I have had issues with posting source code on blog engines. Both Blogger and WordPress make a complete mess of it: - Blogger preview window works correctly, but when I publish it, my formatting all gets lost. - WordPress adds random line breaks when I paste any code in from VS, so I have to spend ages reformatting Does anybody know of a free online blog service which I can use which is good for posting source code onto? Bonus points if it can read directly from Word, where I do my drafts. Thanks in advance, Chris [Edit] Thanks to all who responded - I have gone with Kevin's suggestion but using Wordpress rather then Blogger for better formatting. If anybody is interested in seeing the formatted results, send me a message and I will give you the URL, however I'm not going to post a link in the lounge as my flame proof suit is at the dry cleaners this week. [/Edit]
modified on Sunday, February 22, 2009 1:59 PM
Wordpress has a [sourcecode language="csharp"] code [/sourcecode] tag that you can use. (atleast the official wordpress site where I host my blog) You simply paste raw source code into that block. http://support.wordpress.com/code/[^]
-
Wordpress has a [sourcecode language="csharp"] code [/sourcecode] tag that you can use. (atleast the official wordpress site where I host my blog) You simply paste raw source code into that block. http://support.wordpress.com/code/[^]
Yeah, I'm aware of this feature. Even with this it was breaking my code layout though - when I pasted code in, it randomly added extra line breaks for me. So what was happening was that I had comments which got broken in the middle, so the line after ended up being the wrong colours. Anyway, not to worry though as I have used a similar solution to Kevin's suggestion (above) and am quite happy with it so far. Thanks, Chris
-
Kevin, I just finished uploading my first full post - I used a similar setup to your suggestion. I tried both Wordpress and Blogger, and found that I get far fewer layout problems with Wordpress - perhaps you might look at it to save yourself some time reformatting code. Anyway, thanks again for the suggestion. Chris
-
-
With Wordpress do you experience the problem with code lines getting cut off at the right, as happens with Blogger?
Kevin
-
With Wordpress do you experience the problem with code lines getting cut off at the right, as happens with Blogger?
Kevin
Not in what I have posted so far. I tried to post the same content to both: -Blogger was its usual disorganised self -Wordpress seems to have worked exactly as I would have expected Having said this, I couldn't say 100% that Wordpress wouldn't cut ends of lines off - I try to be careful about my code line lengths in general when posting code anywhere. If it doesn't fit on 1 line within MS Word (courier new font, size 10), I reorganise the layout to fit before posting any code on the internet. If memory serves this is around 50 characters wide. The other issue might be if you use a non-standard template/css layout, but I'm quite happy with the default settings myself. If you like I can send you links to both blogs so you can see the layout differences for yourself? Chris