1.0.0 • Published 10 years ago

colocodo v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

colocodo

Syntax highlight for command, html, javascript,css. Example

Usage

<!-- colocodo default theme -->
<link rel="stylesheet" href="colocodo.css">
<!-- colocodo js module exports global namespace of Colo -->
<script src="colocodo.js"></script>

Auto Render

<body>
    <script type="text/colo">
        body {margin: 0;}
    </script>
    <script type="text/colo-css">
        body {color:white;}
    </script>
</body>

Rendering API

Colo.render([command | js | css | html], code);
// or
Colo.render(code) // auto detect syntax, but currently only support html and css detection.