<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Javascript Code Formatting</title>
	<atom:link href="http://www.zorched.net/2006/09/26/javascript-code-formatting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zorched.net/2006/09/26/javascript-code-formatting/</link>
	<description>Musings of a software developer in Milwaukee, WI.</description>
	<lastBuildDate>Fri, 05 Mar 2010 11:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Are you serious?</title>
		<link>http://www.zorched.net/2006/09/26/javascript-code-formatting/comment-page-1/#comment-11071</link>
		<dc:creator>Are you serious?</dc:creator>
		<pubDate>Thu, 22 Nov 2007 14:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/26/javascript-code-formatting/#comment-11071</guid>
		<description>It is inconceivable that a test.html wasn&#039;t included in the download. I repeat, the sheer idiocy of this is overwhelming.

Here is a base code, place it in the folder where you see the Scripts and Styles folders (what is with the capitalisation? M$ technology programmers? No wonder all their links were screwed up from all over the web pointing to their website with capitals.)



 



 



dp.SyntaxHighlighter.ClipboardSwf = &#039;Scripts/clipboard.swf&#039;; dp.SyntaxHighlighter.HighlightAll(&#039;code&#039;); 








  dp.SyntaxHighlighter.ClipboardSwf = &#039;Scripts/clipboard.swf&#039;;
  dp.SyntaxHighlighter.HighlightAll(&#039;code&#039;);


  


</description>
		<content:encoded><![CDATA[<p>It is inconceivable that a test.html wasn&#8217;t included in the download. I repeat, the sheer idiocy of this is overwhelming.</p>
<p>Here is a base code, place it in the folder where you see the Scripts and Styles folders (what is with the capitalisation? M$ technology programmers? No wonder all their links were screwed up from all over the web pointing to their website with capitals.)</p>
<p>dp.SyntaxHighlighter.ClipboardSwf = &#8216;Scripts/clipboard.swf&#8217;; dp.SyntaxHighlighter.HighlightAll(&#8216;code&#8217;); </p>
<p>  dp.SyntaxHighlighter.ClipboardSwf = &#8216;Scripts/clipboard.swf&#8217;;<br />
  dp.SyntaxHighlighter.HighlightAll(&#8216;code&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Are you serious?</title>
		<link>http://www.zorched.net/2006/09/26/javascript-code-formatting/comment-page-1/#comment-11070</link>
		<dc:creator>Are you serious?</dc:creator>
		<pubDate>Thu, 22 Nov 2007 14:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/26/javascript-code-formatting/#comment-11070</guid>
		<description>In the download you get:

scripts/
   one flash for clipboard
   several language .js files
   a main .js
styles/
   a css file

You get an uncompressed file too.

&lt;b&gt; WHAT YOU DON&#039;T GET &lt;/b&gt;

A simple helloworld.html

I don&#039;t care how bloody simple something is. You have to digg down into the comments OF THE USAGE PAGE, for an actual copy and pasteable example.

What the fuck. Do they not want people to use this?

I am a developer, I know Javascript, that isn&#039;t the damn issue. If you release something like this, which isn&#039;t a runtime distribution (is has uncompressed files) they should add a &amp;$&amp;#^ example file.

Idiots.</description>
		<content:encoded><![CDATA[<p>In the download you get:</p>
<p>scripts/<br />
   one flash for clipboard<br />
   several language .js files<br />
   a main .js<br />
styles/<br />
   a css file</p>
<p>You get an uncompressed file too.</p>
<p><b> WHAT YOU DON&#8217;T GET </b></p>
<p>A simple helloworld.html</p>
<p>I don&#8217;t care how bloody simple something is. You have to digg down into the comments OF THE USAGE PAGE, for an actual copy and pasteable example.</p>
<p>What the fuck. Do they not want people to use this?</p>
<p>I am a developer, I know Javascript, that isn&#8217;t the damn issue. If you release something like this, which isn&#8217;t a runtime distribution (is has uncompressed files) they should add a &amp;$&amp;#^ example file.</p>
<p>Idiots.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brennan&#8217;s Blog &#187; Blog Archive &#187; Colorizing Code in Wordpress</title>
		<link>http://www.zorched.net/2006/09/26/javascript-code-formatting/comment-page-1/#comment-432</link>
		<dc:creator>Brennan&#8217;s Blog &#187; Blog Archive &#187; Colorizing Code in Wordpress</dc:creator>
		<pubDate>Mon, 02 Oct 2006 02:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/26/javascript-code-formatting/#comment-432</guid>
		<description>[...] Last week I had an exchange with Geoff over code formating and suggested it could be done with Javascript. We both happen to run Wordpress for our blogs and I have also been looking for a way to insert stylized code into blog entries, so I helped him to put together a solution. Pretty soon we had a solution. Initially I suggested that it could be done with a bit of Javascript. He considered creating his own new script, but like any pragmatic developer, he looked and found an existing solution called dp.SyntaxHighlighter instead of starting from scratch. [...]</description>
		<content:encoded><![CDATA[<p>[...] Last week I had an exchange with Geoff over code formating and suggested it could be done with Javascript. We both happen to run Wordpress for our blogs and I have also been looking for a way to insert stylized code into blog entries, so I helped him to put together a solution. Pretty soon we had a solution. Initially I suggested that it could be done with a bit of Javascript. He considered creating his own new script, but like any pragmatic developer, he looked and found an existing solution called dp.SyntaxHighlighter instead of starting from scratch. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brennan Stehling</title>
		<link>http://www.zorched.net/2006/09/26/javascript-code-formatting/comment-page-1/#comment-389</link>
		<dc:creator>Brennan Stehling</dc:creator>
		<pubDate>Wed, 27 Sep 2006 20:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/26/javascript-code-formatting/#comment-389</guid>
		<description>Although this a cool way to highlight code, I would be interested in ways to use Javascript to dress up some content.  Perhaps I want autolink certain terms to Wikipedia or another source.  You could wrap a term with a span tag and then use the class and title attributes to pass the data you need to set up the autolinking.  In my blog entries I like to reference source materials whenever possible and this could cut down on some of the time to do that.  The downside is that my blog would not benefit from trackbacks or the association with those sites which Google may use as the context for my pages.</description>
		<content:encoded><![CDATA[<p>Although this a cool way to highlight code, I would be interested in ways to use Javascript to dress up some content.  Perhaps I want autolink certain terms to Wikipedia or another source.  You could wrap a term with a span tag and then use the class and title attributes to pass the data you need to set up the autolinking.  In my blog entries I like to reference source materials whenever possible and this could cut down on some of the time to do that.  The downside is that my blog would not benefit from trackbacks or the association with those sites which Google may use as the context for my pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff Lane</title>
		<link>http://www.zorched.net/2006/09/26/javascript-code-formatting/comment-page-1/#comment-388</link>
		<dc:creator>Geoff Lane</dc:creator>
		<pubDate>Wed, 27 Sep 2006 19:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/26/javascript-code-formatting/#comment-388</guid>
		<description>Pretty slick isn&#039;t it.

You can fix the PRE issue for CODE blocks as well, check out the Update of my previous post on Wordpress Code Formatting. It&#039;s a one-line-fix to remove BR tags from CODE blocks.

Of course if you&#039;re going to use the Javascript syntax highlighting, stick with the TEXTAREA.</description>
		<content:encoded><![CDATA[<p>Pretty slick isn&#8217;t it.</p>
<p>You can fix the PRE issue for CODE blocks as well, check out the Update of my previous post on Wordpress Code Formatting. It&#8217;s a one-line-fix to remove BR tags from CODE blocks.</p>
<p>Of course if you&#8217;re going to use the Javascript syntax highlighting, stick with the TEXTAREA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brennan Stehling</title>
		<link>http://www.zorched.net/2006/09/26/javascript-code-formatting/comment-page-1/#comment-387</link>
		<dc:creator>Brennan Stehling</dc:creator>
		<pubDate>Wed, 27 Sep 2006 18:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/2006/09/26/javascript-code-formatting/#comment-387</guid>
		<description>Good find, and...

It works for me!  Actually I have had the WYSIWYG editor for Wordpress off for a while but it still inserts break tags at the end of each line and encodes special characters, such is the single quote.  That causes some of the inline Javascript to fail when it is in the blog entry.

I fixed it by placing a PRE tag around the TEXTAREA and then put the Javascript call to HighlightAll in the footer of my Wordpress templates.  The PRE tag disables the HTML encoding and break tag insertions.  I am now prepped to do C# and XML syntax highlighting.

http://brennan.offwhite.net/blog/2006/09/25/multiple-site-authentication-with-aspnet-20/
http://brennan.offwhite.net/blog/2006/09/25/robust-custom-profiles/</description>
		<content:encoded><![CDATA[<p>Good find, and&#8230;</p>
<p>It works for me!  Actually I have had the WYSIWYG editor for Wordpress off for a while but it still inserts break tags at the end of each line and encodes special characters, such is the single quote.  That causes some of the inline Javascript to fail when it is in the blog entry.</p>
<p>I fixed it by placing a PRE tag around the TEXTAREA and then put the Javascript call to HighlightAll in the footer of my Wordpress templates.  The PRE tag disables the HTML encoding and break tag insertions.  I am now prepped to do C# and XML syntax highlighting.</p>
<p><a href="http://brennan.offwhite.net/blog/2006/09/25/multiple-site-authentication-with-aspnet-20/" rel="nofollow">http://brennan.offwhite.net/blog/2006/09/25/multiple-site-authentication-with-aspnet-20/</a><br />
<a href="http://brennan.offwhite.net/blog/2006/09/25/robust-custom-profiles/" rel="nofollow">http://brennan.offwhite.net/blog/2006/09/25/robust-custom-profiles/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
