Giter Club home page Giter Club logo

colorcode's Introduction

Hi, all, 这是我根据 DlHighlight 的源代慢慢修改的一个代码高亮的项目。主要提供wordpress 代码高亮插件,普通的网页代码高亮方法和各种代码高亮配色方案。

###Usage

  1. 引用 ColorCode.js

  2. 通过下面的方法调用显示你要高亮的 html 代码:

    <script type="text/javascript"> window.onload = function() { DlHighlight.HELPERS.highlightByName('colorcode', 'pre', '', false ); } </script>
  3. HTML 代码需要显示的地方加上 pre 标签

         .colorcode {
             font-size: 12px;
             color: #fefefe;
         }
     

###Change Log

  • Project Create: 2011-11-29
  • Wordpress Plugin: 2011-12-06
  • Change Project File: 2011-12-07
  • Add HTML Style : 2011-12-20

###Project Tree

|--ColorCode
    |--wp-colorcode //wordpress plugin's php files
        |--colorcode.php
        |--colorcode_amdin.php
    |--html-colorcode //html demo
    |--css //base css , four color themes
        |--knight.css
        |--moonfang.css
        |--nortrom.css
        |--yurnero.css
    |--js //base js

###Contact Me

colorcode's People

Contributors

pizn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

colorcode's Issues

建议

怎么没有后续开发了呢,只支持wordpress吗?

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.