Syntax Highlighter Rendering Problem

By Mithun Bose at January 04, 2010 20:46
Filed Under: Troubleshooting

I installed the syntax highlighter extension in my blog which uses BlogEngine.Net. I stumbled upon a problem, the problem was that the highlighter wasn't rendering the C# code properly, it was adding a new line after every C# keyword. The image below shows the problem

 

 

After pulling my hair for good couple of hours, I accidently fixed the problem. I changed the theme from Indigo to some other theme and voila!!! the problem was gone. I am just guessing that it was due to some CSS setting in the Indigo theme which was causing this side effect????

SyntaxHighlighter is a great extension, you can get it from here

Comments

1/17/2010 11:05:08 AM #

Dubai Hotel

Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog. I am sure my visitors will find that very useful.

Dubai Hotel United States |

1/21/2010 4:59:04 AM #

Voyage Montreal

Thanks for the post! Was quite helpful. By the way, is that your site as well? (the one your linking to?)

Voyage Montreal United States |

1/29/2010 11:01:07 PM #

loans

Many receive advice, only the wise profit from it.

loans United States |

1/30/2010 10:44:57 AM #

firman

hi,..  I'm looking for PSD to HTML converter", I really need it. Could You help me ?
Regards
firman

firman Republic of the Philippines |

2/3/2010 9:44:46 AM #

business and finance

excellent posting..could be my referency.
thank you

business and finance Netherlands |

2/16/2010 8:37:40 PM #

Računalniški servis

Nice blog. Iam folowing you from my mobile rss subscriber.

Računalniški servis Slovenia |

2/18/2010 8:44:51 PM #

stock charts

Do you care if I quote you on my blog if I link back to this page?

stock charts United States |

2/19/2010 12:58:53 AM #

fix runtime error 1004

Hi I reach this site by mistake when i was searching Google for this issue, I must say your site is really helpful I also love the theme, its amazing!. I dont have that much time to read all your post at the moment but I have bookmarked your site and also add your RSS feeds. I will be back in a day or two. thanks for a great site.

fix runtime error 1004 People's Republic of China |

2/19/2010 5:02:56 AM #

Nidia Sauler

Hiya, great day.. Your work is very inspiring. I never believed that it was possible to do something like that until after I read your write-up. You definitely offered an excellent perception on exactly how this kind of whole process operates. Ill always return for more info. Keep writing!

Nidia Sauler United States |

2/19/2010 5:39:35 AM #

Daniel Millions

Can I quote you on my blog if I link back to your website?

Daniel Millions United States |

3/19/2010 12:09:43 AM #

Keren Silacci

Hi webmaster - This is by far the best looking site I’ve seen. It was completely easy to navigate and it was easy to look for the information I needed. Fantastic layout and great content! Every site should have that. Awesome job

Keren Silacci United States |

3/19/2010 1:34:22 AM #

Alejandro Maia

Superb piece, this is very similar to a site that I have. Please check it out sometime and feel free to leave me a comenet on it and tell me what you think. I'm always looking for feedback.

Alejandro Maia United States |

3/19/2010 12:28:00 PM #

Jose Promisco

Wonderful site, where did you come up with the information in this blog post? I'm happy I found it though, ill be checking back soon to see what other articles you have.

Jose Promisco United States |

3/20/2010 2:25:47 AM #

Emilio Keliikoa

Definitely agree with what you stated. Your explanation was certainly the easiest to understand. I tell you, I usually get irked when folks discuss issues that they plainly do not know about. You managed to hit the nail right on the head and explained out everything without complication. Maybe, people can take a signal. Will likely be back to get more. Thanks

Emilio Keliikoa |

3/20/2010 7:10:00 PM #

Property Bulgaria

I like the blog, but could not find how to subscribe to receive the updates by email.

Property Bulgaria United States |

3/22/2010 5:01:39 PM #

Legal Sounds

This is my first time I have visited here. I found a lot of interesting stuff in your blog. From the tons of comments on your articles, I guess I am not the only one! keep up the good work.

Legal Sounds United Kingdom |

3/22/2010 11:35:37 PM #

website design edinburgh

That is nice to definitely find a site where the blogger knows what they are talking about.

website design edinburgh Poland |

3/23/2010 7:41:54 AM #

black tea

Thanx for the effort, keep up the good work Great work, I am going to start a small Blog Engine course work using your site I hope you enjoy blogging with the popular BlogEngine.net.Thethoughts you express are really awesome. Hope you will right some more posts.

black tea Poland |

3/23/2010 5:17:22 PM #

canon ef 50mm f/1.8 ii camera lens

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.

canon ef 50mm f/1.8 ii camera lens United States |

3/24/2010 12:21:39 PM #

Jewelry Next

Great post. Marvellous writing. I have bookmarked your site.

Jewelry Next United States |

3/25/2010 4:54:46 AM #

privat Kredit

Usually I don't spot on information sites, but I'd like to say that this area genuinely forced me to do so!

privat Kredit Austria |

3/26/2010 4:01:35 PM #

oakley flip flops

I am a self confessed sandal freak! i have more than 650 pairs of sandals, even though i have worn only half of them, i still pursue on my crusade to find that perfect pair, problem is, i nearly always think that i have found the perfect pair at the time of purchase, but the high quickly fades once i get my credit card bill!
i commend you on your "Mithun Bose | Syntax Highlighter Rendering Problem" page.
It gave a true fashion junkie the perfect fix!

oakley flip flops Australia |

About the author

I am a professional software developer based in London, England. I specialize in developing enterprise application and integration framework in C#, SQL Server, ASP.NET. 

My area of interests include SOA using WCF, Web, Business Intelligence and Database programming. I am a Computer Science Graduate and Microsoft Certified Professional Developer in enterprise application.