Information
The source codes that provided on this page are managed on GitHub repository.The source codes are licensed on Apache License 2.0.
Feel free to use on your website:)
# | original | modified version |
---|---|---|
1 | the CSSs works to all your HTML. | the CSSs works only with in the <pre class="prettyprint">. |
2 | the CSSs works to any type of HTML tags. | the CSSs works only for the SPAN tag.( and also the span tags in pre tag #1) |
3 | the CSS class names are simple. So that it may cause collision with your original class names. | the CSS class names has prefix "pp-". So that it may not collision with your class names. |
<!-- my HTML --> <style> div.tag { color:red } </style> <div class="tag">the tag div</div>the text in div elements may colored with NOT red, because code-prettify has the CSS that .tag { color: #008} |
the div class shows in the left cell will colored with red, because modified code-prettify has the CSS that
pre.prettyprint span.pp-tag { color: #008 } |
How to use
Referer this sample source code. The<script src>
location may not be able to change. (If you want to own by your self, you have to change
run_prettify.js)On this website, I don`t provide skins without the default.
Please cooperate
Please make the pull request for the using.md on GitHub to announce that your website is using this version
Source list
- \skins\default.css *different from original
- \lang-apollo.js
- \lang-basic.js
- \lang-clj.js
- \lang-css.js
- \lang-dart.js
- \lang-erlang.js
- \lang-ex.js
- \lang-go.js
- \lang-hs.js
- \lang-kotlin.js
- \lang-lasso.js
- \lang-lisp.js
- \lang-llvm.js
- \lang-logtalk.js
- \lang-lua.js
- \lang-matlab.js
- \lang-ml.js
- \lang-mumps.js
- \lang-n.js
- \lang-pascal.js
- \lang-proto.js
- \lang-r.js
- \lang-rd.js
- \lang-rust.js
- \lang-scala.js
- \lang-sql.js
- \lang-swift.js
- \lang-tcl.js
- \lang-tex.js
- \lang-vb.js
- \lang-vhdl.js
- \lang-wiki.js
- \lang-xq.js
- \lang-yaml.js
- \node_prettify.js
- \prettify.css *different from original
- \prettify.js *different from original
- \run_prettify.js *different from original