WP-CodeBox使用方法,需再<pre>.......</pre>裡面增加下面屬性。
屬性:
下面套用再FCKEditor樣式表,可免手動填寫<pre>.......</pre>。
Dean's FCKEditor With pwwang's Code Plugin For Wordpress v1.0.0
找到./wp-content/plugins/deans-fckeditor-with-pwwangs-code-plugin-for-wordpress/fckeditor/fckstyles.xml開啟添加下面代碼;
其他版本(Dean's FCKEditor For Wordpress v3.3.1)
./wp-content/plugins/ck-and-syntaxhighlighter/ckeditor/plugins/styles/styles/default.js
<Style name="Code HTML" element="pre">
<Attribute name="lang" value="html4strict" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="1" />
</Style>
<Style name="Code HTML(no line)" element="pre">
<Attribute name="lang" value="html4strict" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="" />
</Style>
<Style name="Code XML" element="pre">
<Attribute name="lang" value="xml" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="1" />
</Style>
<Style name="Code XML(no line)" element="pre">
<Attribute name="lang" value="xml" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="" />
</Style>
<Style name="Code PHP" element="pre">
<Attribute name="lang" value="php" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="1" />
</Style>
<Style name="Code PHP(no line)" element="pre">
<Attribute name="lang" value="php" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="" />
</Style>
<Style name="Code C#" element="pre">
<Attribute name="lang" value="csharp" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="1" />
</Style>
<Style name="Code C#(no line)" element="pre">
<Attribute name="lang" value="csharp" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="" />
</Style>
<Style name="Code VB" element="pre">
<Attribute name="lang" value="vb" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="1" />
</Style>
<Style name="Code VB(no line)" element="pre">
<Attribute name="lang" value="vb" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="" />
</Style>
<Style name="Code JAVA" element="pre">
<Attribute name="lang" value="java" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="1" />
</Style>
<Style name="Code JAVA(no line)" element="pre">
<Attribute name="lang" value="java" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="" />
</Style>
<Style name="Code C" element="pre">
<Attribute name="lang" value="c" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="1" />
</Style>
<Style name="Code C(no line)" element="pre">
<Attribute name="lang" value="c" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="" />
</Style>
<Style name="Code C++" element="pre">
<Attribute name="lang" value="cpp" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="1" />
</Style>
<Style name="Code C++(no line)" element="pre">
<Attribute name="lang" value="cpp" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="" />
</Style>
<Style name="Code Apache" element="pre">
<Attribute name="lang" value="apache" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="1" />
</Style>
<Style name="Code Apache(no line)" element="pre">
<Attribute name="lang" value="apache" />
<Attribute name="colla" value="+" />
<Attribute name="line" value="" />
</Style>








請先 登入 以發表留言。