2016年10月25日 星期二

Google Code prettify

測試了新的google code prettify
選擇版面配置=>新增小工具=>HTML/Javascript

<script code-prettify="" google="" https:="" index.html="" master="" rawgit.com="" 
src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?skin=sons-of-obsidian></script>
可以到這裡挑選喜歡的theme:
https://rawgit.com/google/code-prettify/master/styles/index.html

然後將
<pre class="prettyprint>//code</pre>
就可以將程式碼有高亮度效果了
int main()
{
    print("test");
}

沒有留言: