有几个标签用于代码语法荧光笔,例如pre
和code
。如何使它们在同一个站点兼容?如何使代码语法荧光笔兼容?
# Use PreCode for Windows Live Writer
<pre class="brush: py; toolbar: false;">
...
</pre>
# Install the plugin SyntaxHighlighter Evolved (for WordPress), the source codes will render as:
<div id="highlighter_539499" class="syntaxhighlighter python">
...
</div>
# in markdown, insert code blocks by:
```python
...
```
# will render as:
<pre><code class="python">
...
</code></pre>
# OR
[code lang=python]
...
[/code]
PS:我安装插件演进SyntaxHighlighter的,使用前置码在Windows Live Writer进行离线博客和网上博客WP降价编辑。