Skip to content

bevacqua/highlight-redux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published