If a knowledge fragment is tagged with "pre", it will be displayed "as is" and no further formatting will be applied to it (similar to HTML <pre>..</pre> mark-up).

The "code" tag adds syntax highlighting using google-code-prettify.

You can optionally specify the language with a "lang-<language name>" tag, for more detail, see the google-code-prettify document.

If you create the tag relation "pre -> code" beforehand, you will only need to classify a fragment as "code" to enable syntax highlighting of its content.

Enjoy building your knowledge!
http://piggydb.devjavu.com/#GettingStarted
No comments:
Post a Comment