var fDesc=new Array(); fDesc[0] = "Easily paste preformatted code from your clipboard into Live Writer. The code will be surrounded with a "pre" tag and have a prettyprint stylesheet applied to it. You can then use Google Code Prettify to do client-side syntax highlighting. This Live Writer plug-in surrounds the contents of your clipboard with: pre class="prettyprint" The contents of your clipboard "/pre" Doing this alone DOES NOT apply syntax highlighting to your code. To apply syntax highlighting you must MANUALLY attach Google Code Prettify to your web site. More details on Google Code Prettify can be found here: http://google-code-prettify.googlecode.com/svn/trunk/README.html The advantage of this technique is less HTML is generated and stored in your blog post."; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }