- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2016-05-14T13:41:29+09:00","default:wikiwriter","wikiwriter")
#author("2016-05-14T15:17:58+09:00","default:wikiwriter","wikiwriter")
[[WordPress]]
&tag(WordPress/シンタックスハイライト);
*目次 [#c918de58]
#contents
*関連ページ [#q36cf051]
*参考情報 [#u298c2ef]
-[[SyntaxHighlighter Evolved — WordPress Plugins:https://ja.wordpress.org/plugins/syntaxhighlighter/]]
-[[Crayon Syntax Highlighter — WordPress Plugins:https://ja.wordpress.org/plugins/crayon-syntax-highlighter/]]
-[[highlight.js:https://highlightjs.org/]]
*SyntaxHighlighter Evolvedからhighlight.jsへ移行 [#db12a10c]
**タグの変換 [#t712c243]
-SyntaxHighlighter Evolvedのタグ
<pre class = "brush: objc">XXXXXX</pre>
-Crayon Syntax Highlighter / hilight.jsのタグ
<pre><code class="objc"></code><pre>
-WordPressのSearch Regex Pluginで変換する。
--Search pattern
|<pre class\s*=\s*"brush:\s+(\S+)">\s*(.*?)</pre>|
--Replace pattern
<pre><code class="$1">$2</code></pre>