C# code example markup in WordPress.com
-
My blog ( http://www.royalexander.wordpress.com ) has allot of C# codeing examples in there.
But how do I get the codeing in there with correct indenting (and if possible right colours) as I paste them from Visual Studio.
If I paste them to word, word shows exactly what I want. But if I then use wordpresses “paste from word” option all the indenting is lost, and so is the colouring.
If I paste it in using the normal paste function the indenting is gone as soon as I click ok. Is there a way for wordpress to store the indenting, or an editor I can paste my code to, from which I can paste my code so that WordPress will understand it, so far as I see it now wordpress just totally ignores “tab”.
I see multiple blogs about coding and stuff, some of wich do have nice indenting but I just cant seem to get it right in my blog.
-
This is what we have, but I’m not sure if it will work for you or not: http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/ .
-
Thanks, if I copy that syntax exactly (aka no spaces) it works prefectly *(see it here: http://royalexander.wordpress.com/ )
THanks allot
-
- The topic ‘C# code example markup in WordPress.com’ is closed to new replies.