Додано плагін highlight.js без якого неможуть обійтись веб-дизайнери та програмісти ;)
Активовується вручну в “Plugins”. Кнопка “code” вже налаштована під цей плагін
Наведу декілька приклалів:
<head>
<title>Title</title>
<body>
<p class="something">Something</p>
<p class=something>Something</p>
<!-- comment -->
<p class>Something</p>
<p class="something" title="p">Something</p>
</body>
.comment {
color: gray;
}
.keyword {
font-weight: bold;
}
add_option('hljs_languages', '');
if (!get_option('hljs_script_path')) {
$components = explode('/', dirname(__FILE__));
$l = sizeof($components);
$script_path = get_settings('home') . '/' . $components[$l - 3] . '/' . $components[$l - 2] . '/' . $components[$l - 1];
add_option('hljs_script_path', $script_path . '/highlight.js');
}
Якщо виникають проблеми (як в мене з html)
http://blog.net.ua/wp-content/plugins/highlight/export.html