pub-pkg-highlight

11.4.0 • Public • Published

---- / ---- name: README

pub-pkg-highlight

pub-server package for injecting browser-based syntax highlighting using highlight.js.

A website with examples can be found at https://jldec.github.io/pub-pkg-highlight

Includes support for 34 commonly used languages and a github-theme stylesheet. See highlightjs.org for details.

installation

This package is included with pub-server.

To enable it, add pub-pkg-highlight to your pub-config pkgs.

usage

Layout templates which use {{{injectCss}}} and {{{injectJs}}} will automatically link to:

  • /css/highlight-11.4.0-github.css
  • /js/highlight-11.4.0.min.js
  • /js/pub-pkg-highlight.js

credits

Syntax highlighting thanks to highlight.js authors. Highlight.js is released under the BSD License.

Package Sidebar

Install

npm i pub-pkg-highlight

Weekly Downloads

9

Version

11.4.0

License

MIT

Unpacked Size

122 kB

Total Files

8

Last publish

Collaborators

  • jldec