Git Product home page Git Product logo

syntaxhighlighter's Introduction

SyntaxHighlighter-For-Typecho

著名代码高亮插件SyntaxHighlighter Typecho移植版,同时支持0.8、0.9、1.0

本插件基于Tolbkni Kao的Syntax Highlighter for Typecho 0.8修改

typecho新版发布了,就冲这个Markdown也要体验一下。就是因为这个Markdown,以前用的代码高亮插件失效了,同时原作者已经不再使用typecho了,所以只好花一点时间,修改一下原作者的插件。说是修改,其实已经改了大部分内容了。

插件目录请命名为 SyntaxHighlighter

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

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

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

syntaxhighlighter's People

Contributors

tinpont avatar jia-wei-zheng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.