<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>WordPress 非官方中文站 &#187; 代码</title> <atom:link href="http://wpchina.org/tag/code/feed/" rel="self" type="application/rss+xml" /><link>http://wpchina.org</link> <description>提供 WordPress 插件、主题、程序及相关的中文资讯</description> <lastBuildDate>Tue, 15 May 2012 01:33:00 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>添加 WP-Syntax 按钮到 WordPress 编辑器</title><link>http://wpchina.org/integrate-wp-syntax-to-edit-toolbar-431/</link> <comments>http://wpchina.org/integrate-wp-syntax-to-edit-toolbar-431/#comments</comments> <pubDate>Sat, 29 Nov 2008 07:43:03 +0000</pubDate> <dc:creator>Jiang</dc:creator> <category><![CDATA[代码研究]]></category> <category><![CDATA[插件使用]]></category> <category><![CDATA[代码]]></category> <category><![CDATA[插件兼容性]]></category><guid isPermaLink="false">http://wpchina.org/integrate-wp-syntax-to-edit-toolbar-431/</guid> <description><![CDATA[<p>对于熟悉程序设计的网友，在 WordPress 插入<strong>代码</strong>是经常的事情。使用代码插件，可以让你的程序代码更容易阅读。<a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">WP-Syntax</a> 就是这样一个代码插件。</p>]]></description> <content:encoded><![CDATA[<p>对于熟悉程序设计的网友，在 WordPress 插入<strong>代码</strong>是经常的事情。使用代码插件，可以让你的程序代码更容易阅读。<a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">WP-Syntax</a> 就是这样一个代码插件。</p><p>不过，<a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">WP-Syntax</a> 插件使用起来却并不太方便。使用这个插件，每次插入代码的时候，都需要手动输入一些预设置的格式。如果能够在编辑器框里增加一个按钮，自动输入这些重复的内容，就方便多了。</p><p>popdo 网友的文章 <a href="http://www.c2cer.com/20081128/wp-syntax-plugins-code/" target="_blank">一键插入WP-Syntax插件代码</a>， 刚好解决了这个问题。</p><p>PS：个人觉得，popdo 的办法也适合于 <a href="http://www.coolcode.cn/show-26-1.html" target="_blank">coolcode</a>，这是国内网友开发的一款精品插件。我们 <a href="http://wpchina.org/" target="_blank">WPChina.org</a> 目前使用的也是这款插件。</p><p>更新：2008年12月2日：<a href="http://18tvb.com/wordpress-to-the-editor-of-the-add-button-coolcode.html" target="_blank">添加 coolcode 到工具栏的办法可以参考文章：给wordpress的编缉器添加coolcode按钮</a></p> ]]></content:encoded> <wfw:commentRss>http://wpchina.org/integrate-wp-syntax-to-edit-toolbar-431/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>使用滚动条显示超长代码</title><link>http://wpchina.org/show-long-code-with-scrollbar-in-wordpress-post-320/</link> <comments>http://wpchina.org/show-long-code-with-scrollbar-in-wordpress-post-320/#comments</comments> <pubDate>Sat, 16 Aug 2008 03:30:17 +0000</pubDate> <dc:creator>Jiang</dc:creator> <category><![CDATA[使用进阶]]></category> <category><![CDATA[代码]]></category><guid isPermaLink="false">http://wpchina.org/show-long-code-with-scrollbar-in-wordpress-post-320/</guid> <description><![CDATA[<p>在使用 Wordpress 的时候，我们经常需要写一些程序代码。大部分时候，我们可以使用&#60;code&#62;或者&#60;pre&#62;标签来显示代码。但是，有时候代码过长，超出文章内容，就会打乱文章的正式版式，是得不偿失的。</p>]]></description> <content:encoded><![CDATA[<p>在使用 WordPress 的时候，我们经常需要写一些程序代码。大部分时候，我们可以使用&lt;code&gt;或者&lt;pre&gt;标签来显示代码。但是，有时候代码过长，超出文章内容，就会打乱文章的正式版式，是得不偿失的。</p><p>有许多的 WordPress 高亮语法代码，可以提供一个滚动条，让长度超出的时候，以滚动条的形式显示代码，这样既保证了版式，也保证了内容。</p><p>老所的博客所撰写的<a href="http://blog.ipattern.org/archives/177" target="_blank">用滚动条显示超长代码行</a>一文，详细介绍了使用滚动条显示超长代码的做法，也许会对你有所帮助。</p> ]]></content:encoded> <wfw:commentRss>http://wpchina.org/show-long-code-with-scrollbar-in-wordpress-post-320/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </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

Served from: wpchina.org @ 2012-05-23 17:16:44 -->
