Mike Taulty's Blog
Bits and Bytes from Microsoft UK
Blog Code Formatting Test

Blogs

Mike Taulty's Blog

Elsewhere

Archives

Quick test post – I’ve spotted a problem with blog code formatting for examples such as;

static void Main()
{
    int[] array = new int[10];
    int i = 5;
    int value = array[i];
}

which my code formatter appears to put out as;

static void Main()
{
	int[] array = new int[10];
	int i = 5;
	int value = array[i];
}
and an emoticon appears to pop up instead of array[i] – ho hum, looks like it’s time to go around the loop again on “how to get code formatting to work on the website”. It looks fine in Live Writer but not when published.

Update – this looks to be Community Server’s “emoticon filter”, attempting to change…


Posted Mon, Nov 23 2009 12:56 AM by mtaulty
Filed under:

Comments

Anthony Jones wrote re: Blog Code Formatting Test
on Tue, Nov 24 2009 8:29 AM

Looks ok to me.  BTW what code formatter are you using, its very good.

Kevin Jones wrote re: Blog Code Formatting Test
on Tue, Dec 8 2009 4:23 AM
mtaulty wrote re: Blog Code Formatting Test
on Tue, Dec 8 2009 7:17 AM

Yep, I think it's this one;

alexgorbatchev.com/.../SyntaxHighlighter

combined with a plug-in for LiveWriter - this one I think;

gallery.live.com/liveItemDetail.aspx