Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Blog Recommendations? [modified]

Blog Recommendations? [modified]

Scheduled Pinned Locked Moved The Lounge
csharpphpvisual-studioquestionlounge
16 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C c2423

    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

    M Offline
    M Offline
    Mustafa Ismail Mustafa
    wrote on last edited by
    #2

    No, but you could use this to help you with the formatting: http://www.manoli.net/csharpformat/[^]

    C 1 Reply Last reply
    0
    • C c2423

      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

      K Offline
      K Offline
      Kevin McFarlane
      wrote on last edited by
      #3

      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

      C 2 Replies Last reply
      0
      • M Mustafa Ismail Mustafa

        No, but you could use this to help you with the formatting: http://www.manoli.net/csharpformat/[^]

        C Offline
        C Offline
        c2423
        wrote on last edited by
        #4

        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

        M 1 Reply Last reply
        0
        • C c2423

          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

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #5

          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

          C 1 Reply Last reply
          0
          • K Kevin McFarlane

            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

            C Offline
            C Offline
            c2423
            wrote on last edited by
            #6

            Just finished downloading it and telling it not to change my default search provider - seems like this might do the trick! Thanks for the tip. Chris

            1 Reply Last reply
            0
            • N Nish Nishant

              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

              C Offline
              C Offline
              c2423
              wrote on last edited by
              #7

              Yeah, that makes sense - I should have thought of that :-O That said, I think I may still go with Kevins suggestion above - it has a nicer UI then Wordpress. Thanks, Chris

              1 Reply Last reply
              0
              • C c2423

                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

                M Offline
                M Offline
                Mustafa Ismail Mustafa
                wrote on last edited by
                #8

                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>.

                C 1 Reply Last reply
                0
                • K Kevin McFarlane

                  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

                  C Offline
                  C Offline
                  c2423
                  wrote on last edited by
                  #9

                  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

                  K 1 Reply Last reply
                  0
                  • M Mustafa Ismail Mustafa

                    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>.

                    C Offline
                    C Offline
                    c2423
                    wrote on last edited by
                    #10

                    Will do!

                    1 Reply Last reply
                    0
                    • C c2423

                      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

                      R Offline
                      R Offline
                      Roger Alsing 0
                      wrote on last edited by
                      #11

                      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/[^]

                      My Blog

                      C 1 Reply Last reply
                      0
                      • R Roger Alsing 0

                        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/[^]

                        My Blog

                        C Offline
                        C Offline
                        c2423
                        wrote on last edited by
                        #12

                        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

                        1 Reply Last reply
                        0
                        • C c2423

                          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

                          K Offline
                          K Offline
                          Kevin McFarlane
                          wrote on last edited by
                          #13

                          I'll have a look at Wordpress too. I went for Blogger initially because it was readily accessible via my existing Google Account. There's also some discussion here[^] about blogging and code formatting. In fact, I think I was prompted to start blogging from this thread.

                          Kevin

                          C 1 Reply Last reply
                          0
                          • K Kevin McFarlane

                            I'll have a look at Wordpress too. I went for Blogger initially because it was readily accessible via my existing Google Account. There's also some discussion here[^] about blogging and code formatting. In fact, I think I was prompted to start blogging from this thread.

                            Kevin

                            C Offline
                            C Offline
                            c2423
                            wrote on last edited by
                            #14

                            Seems worth a look later - for now though I'm quite happy with the setup! Chris

                            K 1 Reply Last reply
                            0
                            • C c2423

                              Seems worth a look later - for now though I'm quite happy with the setup! Chris

                              K Offline
                              K Offline
                              Kevin McFarlane
                              wrote on last edited by
                              #15

                              With Wordpress do you experience the problem with code lines getting cut off at the right, as happens with Blogger?

                              Kevin

                              C 1 Reply Last reply
                              0
                              • K Kevin McFarlane

                                With Wordpress do you experience the problem with code lines getting cut off at the right, as happens with Blogger?

                                Kevin

                                C Offline
                                C Offline
                                c2423
                                wrote on last edited by
                                #16

                                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

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups