All Projects → 1000ch → syntax-highlight

1000ch / syntax-highlight

Licence: other
Code syntax highlight element.

Programming Languages

HTML
75241 projects

<syntax-highlight>

About

Code syntax highlight element.

Install

Using npm:

$ npm install syntax-highlight

Using bower:

$ bower install syntax-highlight

Usage

Import syntax-highlight.html.

<link rel='import' href='syntax-highlight.html'>

Put <syntax-highlight> tag including code.

<syntax-highlight><script>
  var foo = 'Hello!';
</script>
</syntax-highlight>

<syntax-highlight> behave such like <pre>.

Attributes

lang=<String>

Specify the code language.

http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html

theme=<String>

Select highlight theme.

https://highlightjs.org/static/demo/

License

MIT: http://1000ch.mit-license.org

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].