Skip to content

Commit

Permalink
修正使用说明
Browse files Browse the repository at this point in the history
使用HTML代码方式,中间的代码需要经过HTML转义才能正常显示,添加官方网站使用说明文档地址。
  • Loading branch information
tinpont committed Jan 11, 2014
1 parent fcf6e07 commit 8d0ccf7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Expand Up @@ -17,18 +17,20 @@ typecho 0.9使用方法:
typecho 0.8及以下使用方法:

<pre class="brush: html">
<html>
<head>这是一个测试标题</head>
<body>
&lt;html&gt;
&lt;head&gt;这是一个测试标题&lt;/head&gt;
&lt;body&gt;
Hello, everyone.
</body>
</html>
&lt;/body&gt;
&lt;/html&gt;
</pre>


主要原理是通过替换Markdown输出的`<pre><code class="lang-cpp">``<pre class="brush:cpp">`从而使Syntax Highlighter能正常渲染。

最后需要注意一个问题,开启代码折叠又没开工具栏的时候,代码会消失,这可能是Syntax Highlighter遗留下来的BUG。所以请开启代码折叠的同时,也把工具栏开启了。

更多的配置选项,请参考[官方网站][3]

[1]: https://blog.imtk.me/
[2]: https://github.com/alexgorbatchev/SyntaxHighlighter
[2]: https://github.com/alexgorbatchev/SyntaxHighlighter
[3]: http://alexgorbatchev.com/SyntaxHighlighter/manual/configuration/

0 comments on commit 8d0ccf7

Please sign in to comment.