<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Gábor's blog</title>
  <link rel="alternate" type="text/html" href="http://www.nekomancer.net/blog/archives/switched-to-wp-syntax"/>
  <link rel="self" type="application/atom+xml" href="http://www.nekomancer.net/node/147/atom/feed"/>
  <id>http://www.nekomancer.net/node/147/atom/feed</id>
  <updated>2008-03-28T18:46:28-05:00</updated>
  <entry>
    <title>switched to wp-syntax</title>
    <link rel="alternate" type="text/html" href="http://www.nekomancer.net/blog/archives/switched-to-wp-syntax" />
    <id>http://www.nekomancer.net/blog/archives/switched-to-wp-syntax</id>
    <published>2007-08-09T03:37:29-05:00</published>
    <updated>2008-03-28T18:46:28-05:00</updated>
    <author>
      <name>gabor</name>
    </author>
    <category term="42" />
    <summary type="html"><![CDATA[<p>until now i was using <a href="http://indyjt.com/software/">SyntHihol</a> for source-code syntax-highlighting, but i always had problems with having it play nicely with <a href="http://daringfireball.net/projects/markdown/">markdown</a> (i&#8217;m using the <a href="http://www.michelf.com/projects/php-markdown/">wordpress markdown plugin</a> to write my posts).</p>

<p>the problem is/was that the way to tell SynthHihol to syntax-highlight a given part of the post. you have to put that part between
<span class="geshifilter"><span class="geshifilter"><code class="geshifilter-text">&amp;amp;lt;pre lang=&amp;quot;language-name&amp;quot;&amp;amp;gt;</code></span></span> and <span class="geshifilter"><span class="geshifilter"><code class="geshifilter-text">&amp;amp;lt;/pre&amp;amp;gt;</code></span></span> this is quite reasonable, but the problem is that markdown&#8217;s <span class="geshifilter"><span class="geshifilter"><code class="geshifilter-text">&amp;amp;lt;pre&amp;amp;gt;</code></span></span> is not customizable, so there&#8217;s no way to add a language-attribute to it.</p>

<p>later, when i was searching for an alternative syntax-highlighting plugin for wordpress, i found wp-syntax. unfortunately it had the same problem. but then i asked about my problem on the wordpress-forums, and got an <a href="http://wordpress.org/support/topic/129389?replies=3#post-600139">answer</a> .and it works.</p>

<p>while the answer is for wp-syntax, probably the same thing would work also for SyntHihol.</p>

<p>i also switched from SyntHihol to wp-syntax, because it seems to be better maintained.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>until now i was using <a href="http://indyjt.com/software/">SyntHihol</a> for source-code syntax-highlighting, but i always had problems with having it play nicely with <a href="http://daringfireball.net/projects/markdown/">markdown</a> (i&#8217;m using the <a href="http://www.michelf.com/projects/php-markdown/">wordpress markdown plugin</a> to write my posts).</p>

<p>the problem is/was that the way to tell SynthHihol to syntax-highlight a given part of the post. you have to put that part between
<span class="geshifilter"><code class="geshifilter-text">&amp;lt;pre lang=&quot;language-name&quot;&amp;gt;</code></span> and <span class="geshifilter"><code class="geshifilter-text">&amp;lt;/pre&amp;gt;</code></span> this is quite reasonable, but the problem is that markdown&#8217;s <span class="geshifilter"><code class="geshifilter-text">&amp;lt;pre&amp;gt;</code></span> is not customizable, so there&#8217;s no way to add a language-attribute to it.</p>

<p>later, when i was searching for an alternative syntax-highlighting plugin for wordpress, i found wp-syntax. unfortunately it had the same problem. but then i asked about my problem on the wordpress-forums, and got an <a href="http://wordpress.org/support/topic/129389?replies=3#post-600139">answer</a> .and it works.</p>

<p>while the answer is for wp-syntax, probably the same thing would work also for SyntHihol.</p>

<p>i also switched from SyntHihol to wp-syntax, because it seems to be better maintained.</p>
    ]]></content>
  </entry>
</feed>
