jadu / highlight-redux

A redux of highlight.js for the Browserify human

Home Page:ponyfoo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

highlight-redux

Like highlight.js, but not including every single syntax highlighting grammar. Saving bytes for the browser!

Install

npm install highlight-redux

Usage

On the server-side you'll probably always use highlight.js. On the client-side, you can choose to use highlight-redux which doesn't auto-include every single language.

If you're using Browserify, you can use a package.json like the one below, using the leaner implementation on the client-side, saving bytes.

{
  "dependencies": {
    "highlight-redux": "*",
    "highlight.js": "*"
  },
  "browser": {
    "highlight.js": "highlight-redux"
  }
}

Without Browserify, simply use highlight-redux instead of highlight.js on the client-side.

License

MIT

About

A redux of highlight.js for the Browserify human

ponyfoo.com

License:MIT License


Languages

Language:JavaScript 100.0%