A little CSS help wih Community Server

As you can see from my last post, my source code formatting is not great since I moved to Community Server.  The code *IS* formatted nicely when I go into edit mode… the spaces is good and the coloring looks right. 


I have tried several of the stock CSS options and nothing seems to help.  Any ideas?

Comments (5)

  1. michkap says:

    I think the biggest problem is when you come in from Word — you are using MSO’s class names but they are not defined anywhere. So it just uses you text settings.

    What if you specifically selected Courier New as the font for these lines? Does that help? Looking at posts like http://blogs.msdn.com/michkap/archive/2005/04/05/405443.aspx I think its not great but its better than nothing….

  2. a. says:

    seems that the server stripped out most of the styling codes.

  3. I hit the same problem and lamanted about it.

    The CS guys explain it’s a by-product of their security settings and are working to fix it.

    See Rob Howard’s reply here:


  4. jgeurts says:

    Maybe give the CopySourceAsHtml VisualStudio addin a try: http://www.jtleigh.com/people/colin/software/CopySourceAsHtml/

  5. They are indeed stripping style elements.

    You could use font tags instead, if your code highlighter supports this. My little app PostXING can do this for you (http://PostXING.url123.com/main)

Skip to main content