<?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: Posting Source Code on Your WordPress Blog Posts</title> <atom:link href="http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/feed/" rel="self" type="application/rss+xml" /><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/</link> <description>Learn to Build Kick-Ass Websites the Hard Way</description> <lastBuildDate>Wed, 19 Jan 2011 19:56:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>By: Antti Kokkonen</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2830</link> <dc:creator>Antti Kokkonen</dc:creator> <pubDate>Thu, 01 Apr 2010 01:35:17 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2830</guid> <description>Awesome. I&#039;m happy it helped! Reminder me fix the &quot;curly quotes&quot; on my blog as well, never liked&#039;em that much :)</description> <content:encoded><![CDATA[<p>Awesome. I&#39;m happy it helped! Reminder me fix the &#8220;curly quotes&#8221; on my blog as well, never liked&#39;em that much :)</p> ]]></content:encoded> </item> <item><title>By: Doug C.</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2829</link> <dc:creator>Doug C.</dc:creator> <pubDate>Thu, 01 Apr 2010 01:28:37 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2829</guid> <description>Antti, I replaced all instances of quotation marks in my code with the escaped characters and it works perfect. I just used the Find and Replace feature in my text editor, which made it really easy to accomplish this quickly.&lt;br&gt;&lt;br&gt;Thank you for your help.</description> <content:encoded><![CDATA[<p>Antti, I replaced all instances of quotation marks in my code with the escaped characters and it works perfect. I just used the Find and Replace feature in my text editor, which made it really easy to accomplish this quickly.</p><p>Thank you for your help.</p> ]]></content:encoded> </item> <item><title>By: Antti Kokkonen</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2465</link> <dc:creator>Antti Kokkonen</dc:creator> <pubDate>Wed, 31 Mar 2010 22:35:17 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2465</guid> <description>Awesome. I&#039;m happy it helped! Reminder me fix the &quot;curly quotes&quot; on my blog as well, never liked&#039;em that much :)</description> <content:encoded><![CDATA[<p>Awesome. I&#39;m happy it helped! Reminder me fix the &#8220;curly quotes&#8221; on my blog as well, never liked&#39;em that much :)</p> ]]></content:encoded> </item> <item><title>By: Doug C.</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2461</link> <dc:creator>Doug C.</dc:creator> <pubDate>Wed, 31 Mar 2010 22:28:37 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2461</guid> <description>Antti, I replaced all instances of quotation marks in my code with the escaped characters and it works perfect. I just used the Find and Replace feature in my text editor, which made it really easy to accomplish this quickly.&lt;br&gt;&lt;br&gt;Thank you for your help.</description> <content:encoded><![CDATA[<p>Antti, I replaced all instances of quotation marks in my code with the escaped characters and it works perfect. I just used the Find and Replace feature in my text editor, which made it really easy to accomplish this quickly.</p><p>Thank you for your help.</p> ]]></content:encoded> </item> <item><title>By: Antti Kokkonen</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2458</link> <dc:creator>Antti Kokkonen</dc:creator> <pubDate>Wed, 31 Mar 2010 14:11:44 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2458</guid> <description>The &quot;remove_filter&quot; does the trick. I don&#039;t why it&#039;s not working for you as that&#039;s something related to your theme, but other than that, yeah, using the escaped HTML code is the way to go - not a good way, but a way :)</description> <content:encoded><![CDATA[<p>The &#8220;remove_filter&#8221; does the trick. I don&#39;t why it&#39;s not working for you as that&#39;s something related to your theme, but other than that, yeah, using the escaped HTML code is the way to go &#8211; not a good way, but a way :)</p> ]]></content:encoded> </item> <item><title>By: Doug C.</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2457</link> <dc:creator>Doug C.</dc:creator> <pubDate>Wed, 31 Mar 2010 13:45:26 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2457</guid> <description>Ok, now I understand. You mean just place the code you wrote directly in the stylesheet, as is. Got it. But now it still has those bizarre quotation marks so the only way to fix that is with a plugin, eh?</description> <content:encoded><![CDATA[<p>Ok, now I understand. You mean just place the code you wrote directly in the stylesheet, as is. Got it. But now it still has those bizarre quotation marks so the only way to fix that is with a plugin, eh?</p> ]]></content:encoded> </item> <item><title>By: Antti Kokkonen</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2456</link> <dc:creator>Antti Kokkonen</dc:creator> <pubDate>Wed, 31 Mar 2010 13:42:18 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2456</guid> <description>How does editing existing element differ from adding a new one? Just add it, if you need to. Use my example if you want (it just makes the text monospace, taken that you actually have the code inside code-tags).</description> <content:encoded><![CDATA[<p>How does editing existing element differ from adding a new one? Just add it, if you need to. Use my example if you want (it just makes the text monospace, taken that you actually have the code inside code-tags).</p> ]]></content:encoded> </item> <item><title>By: Doug C.</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2455</link> <dc:creator>Doug C.</dc:creator> <pubDate>Wed, 31 Mar 2010 13:38:56 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2455</guid> <description>The thing is I can&#039;t find a code attribute anywhere in my stylesheet in order to style it.</description> <content:encoded><![CDATA[<p>The thing is I can&#39;t find a code attribute anywhere in my stylesheet in order to style it.</p> ]]></content:encoded> </item> <item><title>By: Antti Kokkonen</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2454</link> <dc:creator>Antti Kokkonen</dc:creator> <pubDate>Wed, 31 Mar 2010 13:35:13 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2454</guid> <description>As I already said on earlier comment, having style for code in the css is just styling, does not help with quotation issue. Here&#039;s example if you want to style however:&lt;br&gt;&lt;code&gt;code {font:1em Monaco,&#039;Courier New&#039;,monospace}&lt;/code&gt;</description> <content:encoded><![CDATA[<p>As I already said on earlier comment, having style for code in the css is just styling, does not help with quotation issue. Here&#39;s example if you want to style however:<br /><code>code {font:1em Monaco,&#39;Courier New&#39;,monospace}</code></p> ]]></content:encoded> </item> <item><title>By: Doug C.</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2451</link> <dc:creator>Doug C.</dc:creator> <pubDate>Wed, 31 Mar 2010 12:54:52 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2451</guid> <description>Nope, I entered it correctly, but it didn&#039;t do anything. I don&#039;t have a code style in my stylesheet. That&#039;s why I asked, &quot;Curiously I did not find a &quot;code&quot; class in my own site&#039;s stylesheet. Is that something I have to create myself?</description> <content:encoded><![CDATA[<p>Nope, I entered it correctly, but it didn&#39;t do anything. I don&#39;t have a code style in my stylesheet. That&#39;s why I asked, &#8220;Curiously I did not find a &#8220;code&#8221; class in my own site&#39;s stylesheet. Is that something I have to create myself?</p> ]]></content:encoded> </item> <item><title>By: Antti Kokkonen</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2453</link> <dc:creator>Antti Kokkonen</dc:creator> <pubDate>Wed, 31 Mar 2010 12:51:44 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2453</guid> <description>If the remove_filter didn&#039;t work, you did it wrong -or- there is overriding line of code elsewhere in your theme-files (checking other filters for &quot;the_content&quot; or &quot;_filter&quot; from the .php should do the trick).&lt;br&gt;&lt;br&gt;And the reason the code-tag didn&#039;t do anything probably has something to do with the having style definition for code in the css-file :)</description> <content:encoded><![CDATA[<p>If the remove_filter didn&#39;t work, you did it wrong -or- there is overriding line of code elsewhere in your theme-files (checking other filters for &#8220;the_content&#8221; or &#8220;_filter&#8221; from the .php should do the trick).</p><p>And the reason the code-tag didn&#39;t do anything probably has something to do with the having style definition for code in the css-file :)</p> ]]></content:encoded> </item> <item><title>By: Dave Doolin</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2452</link> <dc:creator>Dave Doolin</dc:creator> <pubDate>Wed, 31 Mar 2010 12:49:09 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2452</guid> <description>I actually present a fair bit of code, and WP-Syntax doesn&#039;t play well with Thesis theme.  &lt;br&gt;Thinking about switching to SyntaxHighlighter Evolved next.</description> <content:encoded><![CDATA[<p>I actually present a fair bit of code, and WP-Syntax doesn&#39;t play well with Thesis theme. <br />Thinking about switching to SyntaxHighlighter Evolved next.</p> ]]></content:encoded> </item> <item><title>By: Doug C.</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2450</link> <dc:creator>Doug C.</dc:creator> <pubDate>Wed, 31 Mar 2010 12:35:28 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2450</guid> <description>I already tried adding the &quot;remove_filter&quot; line to my functions.php file and it didn&#039;t do anything. I coded a div with some inline styles to dress up that ugly code section in my article, but since it&#039;s not a proper &quot;code&quot; tag it didn&#039;t do anything but make the boxes better looking.</description> <content:encoded><![CDATA[<p>I already tried adding the &#8220;remove_filter&#8221; line to my functions.php file and it didn&#39;t do anything. I coded a div with some inline styles to dress up that ugly code section in my article, but since it&#39;s not a proper &#8220;code&#8221; tag it didn&#39;t do anything but make the boxes better looking.</p> ]]></content:encoded> </item> <item><title>By: Antti Kokkonen</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2447</link> <dc:creator>Antti Kokkonen</dc:creator> <pubDate>Wed, 31 Mar 2010 12:29:05 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2447</guid> <description>The &quot;smart quotes&quot; or &quot;curly quotes&quot; is a WordPress theme feature. If you want to disable it completely (affects all quotes, not just in code), add this to functions.php of your WP theme:&lt;br&gt;&lt;br&gt;&lt;code&gt;remove_filter(&#039;the_content&#039;, &#039;wptexturize&#039;);&lt;/code&gt;&lt;br&gt;&lt;br&gt;The option for just code is using the &lt;a href=&quot;http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php&quot; rel=&quot;nofollow&quot;&gt;escaped character code&lt;/a&gt; of quotation mark instead of just typing it:&lt;br&gt;&lt;br&gt;&lt;code&gt;&amp;&#035;34&#059; instead of: &quot;&lt;/code&gt;&lt;br&gt;&lt;br&gt;...and after using the character code, just publish. If you edit after that, the code will be converted back to &quot; (In that sense, WordPress editor sucks a bit, thus disapling the wptexturize is good option).&lt;br&gt;&lt;br&gt;For the styling, add something like this to the .css file (you don&#039;t necessary need it, unless you want particular style for the code- or pre-tagged text):&lt;br&gt;&lt;br&gt;&lt;code&gt;code {font:1em Monaco,&#039;Courier New&#039;,monospace}&lt;/code&gt;</description> <content:encoded><![CDATA[<p>The &#8220;smart quotes&#8221; or &#8220;curly quotes&#8221; is a WordPress theme feature. If you want to disable it completely (affects all quotes, not just in code), add this to functions.php of your WP theme:</p><p><code>remove_filter(&#39;the_content&#39;, &#39;wptexturize&#39;);</code></p><p>The option for just code is using the <a href="http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php" rel="nofollow">escaped character code</a> of quotation mark instead of just typing it:</p><p><code>&#38;&#35;34&#59; instead of: "</code></p><p>&#8230;and after using the character code, just publish. If you edit after that, the code will be converted back to &#8221; (In that sense, WordPress editor sucks a bit, thus disapling the wptexturize is good option).</p><p>For the styling, add something like this to the .css file (you don&#39;t necessary need it, unless you want particular style for the code- or pre-tagged text):</p><p><code>code {font:1em Monaco,&#39;Courier New&#39;,monospace}</code></p> ]]></content:encoded> </item> <item><title>By: Doug C.</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2445</link> <dc:creator>Doug C.</dc:creator> <pubDate>Wed, 31 Mar 2010 10:10:41 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2445</guid> <description>I only write in the HTML window anyway, but I just wrote a guest blog tutorial and the code (if copied off the page) renders with backward quotation marks. Curiously I did not find a &quot;code&quot; class in my own site&#039;s stylesheet. Is that something I have to create myself?</description> <content:encoded><![CDATA[<p>I only write in the HTML window anyway, but I just wrote a guest blog tutorial and the code (if copied off the page) renders with backward quotation marks. Curiously I did not find a &#8220;code&#8221; class in my own site&#39;s stylesheet. Is that something I have to create myself?</p> ]]></content:encoded> </item> <item><title>By: Antti Kokkonen</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2444</link> <dc:creator>Antti Kokkonen</dc:creator> <pubDate>Wed, 31 Mar 2010 10:04:26 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2444</guid> <description>The best code highlighting plugin I&#039;ve seen is the SyntaxHighlighter Evolved I mention on the post.&lt;br&gt;&lt;br&gt;I don&#039;t use it myself, since I don&#039;t like having the Javascript thing here, when I only post code every so often. I personally use HTML tags and CSS to format the bits of code... At minimum, the code needs to be in CODE-tag, or in PRE-tag, and those should use &quot;monospace&quot; font, like Monaco, &#039;Courier New&#039; or similar.&lt;br&gt;&lt;br&gt;The &quot;quotation mark issue&quot; is &quot;fixed&quot; by using a PRE-tag or editing the post only in the HTML-side (not WYSIWYG), and use the character code. More about that in the WordPress codex link on the post: &lt;a href=&quot;http://codex.wordpress.org/Writing_Code_in_Your_Posts&quot; rel=&quot;nofollow&quot;&gt;http://codex.wordpress.org/Writing_Code_in_Your...&lt;/a&gt;</description> <content:encoded><![CDATA[<p>The best code highlighting plugin I&#39;ve seen is the SyntaxHighlighter Evolved I mention on the post.</p><p>I don&#39;t use it myself, since I don&#39;t like having the Javascript thing here, when I only post code every so often. I personally use HTML tags and CSS to format the bits of code&#8230; At minimum, the code needs to be in CODE-tag, or in PRE-tag, and those should use &#8220;monospace&#8221; font, like Monaco, &#39;Courier New&#39; or similar.</p><p>The &#8220;quotation mark issue&#8221; is &#8220;fixed&#8221; by using a PRE-tag or editing the post only in the HTML-side (not WYSIWYG), and use the character code. More about that in the WordPress codex link on the post: <a href="http://codex.wordpress.org/Writing_Code_in_Your_Posts" rel="nofollow"></a><a href="http://codex.wordpress.org/Writing_Code_in_Your" rel="nofollow">http://codex.wordpress.org/Writing_Code_in_Your</a>&#8230;</p> ]]></content:encoded> </item> <item><title>By: Doug C.</title><link>http://zemalf.com/394/posting-source-code-on-your-wordpress-blog-posts/#comment-2443</link> <dc:creator>Doug C.</dc:creator> <pubDate>Wed, 31 Mar 2010 09:24:50 +0000</pubDate> <guid isPermaLink="false">http://zemalf.com/?p=394#comment-2443</guid> <description>Antti, have you found any code converter plugins other than the one you mentioned? I&#039;m having some issues with writing code in some of my tutorials on my WP site - the quotation marks keep getting turned around. I&#039;ve been searching for something to fix this (either a plugin or perhaps a hard coded fix), but I haven&#039;t really found anything that works yet.</description> <content:encoded><![CDATA[<p>Antti, have you found any code converter plugins other than the one you mentioned? I&#39;m having some issues with writing code in some of my tutorials on my WP site &#8211; the quotation marks keep getting turned around. I&#39;ve been searching for something to fix this (either a plugin or perhaps a hard coded fix), but I haven&#39;t really found anything that works yet.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 2/4 queries in 0.068 seconds using disk: basic
Object Caching 578/579 objects using disk: basic
Content Delivery Network via cdn.zemalf.com

Served from: zemalf.com @ 2012-05-17 16:25:19 -->
