post image

SyntaxHighlighter Invalid HTML Problem Fast Hack

SyntaxHighlighter is a nice tool that makes the code snippets on your blog look pretty. It’s based on Javascript so it’s unobtrusive and degrades gracefully. It’s client side based so it works on every server. It supports C++, Javascript, PHP, XML, CSS and the most common languages out there. It’s easy to deploy and it supports most browsers. With all those nice things said, it still does something that ruins your day. SyntaxHighlighter makes your XHTML invalid.

Why is that a problem? See this, you’ve been coding this cool design for hours, making pretty damn sure that you are using valid XHTML. And then you install a script and suddenly all the valid mark up that you’ve coded for hours becomes invalid because of a tiny tag.

My Recent Posts

Other posts you might be interested in
post image

Una WordPress Theme

Una is my very first free public release WordPress theme. It has 2 columns divided with the guide of the divine proportion. The front page…

post image

Goodbye Splash Page

Finally, after more than 5 months of waiting, visualizing, conceptualizing, tinkering with the PSP and planning, this website is finally up. I say it’s time to…

who am i?

What you should know about me
My Twitter Avatar Hello, my name is Dino Latoga and I am a Web Designer who develops custom Wordpress themes. This site serves as a place to express my creative thoughts and showcase my past and present work. Know more about me.