<?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: Blogging with Style</title>
	<atom:link href="http://www.red-sweater.com/blog/46/blogging-with-style/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-sweater.com/blog/46/blogging-with-style</link>
	<description>Mac &#38; Technology Writings by Daniel Jalkut</description>
	<pubDate>Wed,  7 Jan 2009 03:37:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/46/blogging-with-style/comment-page-1#comment-191</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Thu, 20 Oct 2005 01:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=46#comment-191</guid>
		<description>Interesting, thanks for the feedback. Some good ideas to look into when I have more time!

I haven't tried from IE yet (Windows or Mac), but I wouldn't be surprised if some of the funkiness is due to my WordPress installation.  I have noticed some funkiness which I think is because of inherited CSS attributes that I haven't tracked down entirely.</description>
		<content:encoded><![CDATA[<p>Interesting, thanks for the feedback. Some good ideas to look into when I have more time!</p>
<p>I haven&#8217;t tried from IE yet (Windows or Mac), but I wouldn&#8217;t be surprised if some of the funkiness is due to my WordPress installation.  I have noticed some funkiness which I think is because of inherited CSS attributes that I haven&#8217;t tracked down entirely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Schinckel</title>
		<link>http://www.red-sweater.com/blog/46/blogging-with-style/comment-page-1#comment-190</link>
		<dc:creator>Matt Schinckel</dc:creator>
		<pubDate>Thu, 20 Oct 2005 00:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=46#comment-190</guid>
		<description>Hmm, your code looks better now.  Not sure if you did anything, or if it was just a random IE issue.  It must be the latter, as soon as I start editing the comment, it screws up again.

I did notice you don't add the bold sections in.  I think it's because Verdana-Bold isn't a real font: CSS needs it to be font-weight:bold.</description>
		<content:encoded><![CDATA[<p>Hmm, your code looks better now.  Not sure if you did anything, or if it was just a random IE issue.  It must be the latter, as soon as I start editing the comment, it screws up again.</p>
<p>I did notice you don&#8217;t add the bold sections in.  I think it&#8217;s because Verdana-Bold isn&#8217;t a real font: CSS needs it to be font-weight:bold.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Schinckel</title>
		<link>http://www.red-sweater.com/blog/46/blogging-with-style/comment-page-1#comment-189</link>
		<dc:creator>Matt Schinckel</dc:creator>
		<pubDate>Thu, 20 Oct 2005 00:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=46#comment-189</guid>
		<description>Here's my post describing the script I wrote.

http://schinckel.blogsome.com/2005/10/05/script-to-xhtml/

I think my output looks nicer than yours on IE Win (your lines seem to be overlapping each other a little).  However, it's Script Editor/AppleScript specific, and yours is a bit more General (potentially).

And, I note that Script Editor doesn't report properly attributes at the start of comment blocks or lines.  It may be worth coding this in, but would again make it AppleScript specific.

Oh, and the other thing I've done is copy it all to the clipboard at the end.

It's probably possible to replace all of my replace() function calls with a single 'sed' command, but I haven't gotten around to this.  Mainly because I've been doing more JavaScript than AppleScript lately.  And SubEthaEdit already has a "Copy to XHTML".  It doesn't do as good a job with AppleScript, though, as it doesn't recognise application commands properly.

I wonder if one of the alternative AppleScript development environments already does an Export to XHTML...

Oh, and there is already a program available that does this - converts scripts to HTML.  I downloaded it, and got the source from the author, but haven't really looked at it.  It had some issues, and I was going to fix it, but ended up writing my own from scratch instead.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my post describing the script I wrote.</p>
<p><a href="http://schinckel.blogsome.com/2005/10/05/script-to-xhtml/" rel="nofollow">http://schinckel.blogsome.com/2005/10/05/script-to-xhtml/</a></p>
<p>I think my output looks nicer than yours on IE Win (your lines seem to be overlapping each other a little).  However, it&#8217;s Script Editor/AppleScript specific, and yours is a bit more General (potentially).</p>
<p>And, I note that Script Editor doesn&#8217;t report properly attributes at the start of comment blocks or lines.  It may be worth coding this in, but would again make it AppleScript specific.</p>
<p>Oh, and the other thing I&#8217;ve done is copy it all to the clipboard at the end.</p>
<p>It&#8217;s probably possible to replace all of my replace() function calls with a single &#8217;sed&#8217; command, but I haven&#8217;t gotten around to this.  Mainly because I&#8217;ve been doing more JavaScript than AppleScript lately.  And SubEthaEdit already has a &#8220;Copy to XHTML&#8221;.  It doesn&#8217;t do as good a job with AppleScript, though, as it doesn&#8217;t recognise application commands properly.</p>
<p>I wonder if one of the alternative AppleScript development environments already does an Export to XHTML&#8230;</p>
<p>Oh, and there is already a program available that does this - converts scripts to HTML.  I downloaded it, and got the source from the author, but haven&#8217;t really looked at it.  It had some issues, and I was going to fix it, but ended up writing my own from scratch instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/46/blogging-with-style/comment-page-1#comment-187</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Wed, 19 Oct 2005 14:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=46#comment-187</guid>
		<description>Thanks for the note, Matt. I didn't realize the "text runs" would work in so many apps! In fact, I changed my script posted above to simply target Script Editor directly, and it does the trick.

I discovered that I need to update the script to at least look out for an convert entities like "&#60;", though. I'm not sure if I should try to do that with AppleScript, or switch to something more performance appropriate.  It's probably not a bad idea to grab the text runs with AppleScript and then pass them to perl or something for sanitizing and constructing the HTML.</description>
		<content:encoded><![CDATA[<p>Thanks for the note, Matt. I didn&#8217;t realize the &#8220;text runs&#8221; would work in so many apps! In fact, I changed my script posted above to simply target Script Editor directly, and it does the trick.</p>
<p>I discovered that I need to update the script to at least look out for an convert entities like &#8220;&lt;&#8221;, though. I&#8217;m not sure if I should try to do that with AppleScript, or switch to something more performance appropriate.  It&#8217;s probably not a bad idea to grab the text runs with AppleScript and then pass them to perl or something for sanitizing and constructing the HTML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Schinckel</title>
		<link>http://www.red-sweater.com/blog/46/blogging-with-style/comment-page-1#comment-185</link>
		<dc:creator>Matt Schinckel</dc:creator>
		<pubDate>Wed, 19 Oct 2005 11:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=46#comment-185</guid>
		<description>I wrote a pretty similar script the other day.

I've also discovered you can use this idea with any program - almost anything will allow for runs of text &#38; attributes.  Thus, if your Syntax Styling editor didn't output HTML, you could easily cobble together a script that does.

I also wrote into my script the use of CSS, and put the CSS code on my site, so I can have smaller/more compact code created.

I like yours though, it's a bit more general than mine.</description>
		<content:encoded><![CDATA[<p>I wrote a pretty similar script the other day.</p>
<p>I&#8217;ve also discovered you can use this idea with any program - almost anything will allow for runs of text &amp; attributes.  Thus, if your Syntax Styling editor didn&#8217;t output HTML, you could easily cobble together a script that does.</p>
<p>I also wrote into my script the use of CSS, and put the CSS code on my site, so I can have smaller/more compact code created.</p>
<p>I like yours though, it&#8217;s a bit more general than mine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.572 seconds -->
