clipboard.js

JavaScript library for copying text into clipboard.

  • Just 3kb gzipped
  • Works in all modern browsers without Flash

highlight.js

Syntax highlighter written in JavaScript.

  • 185 languages and 89 styles
  • Automatic language detection
  • Multi-language code highlighting
  • Available for node.js

Prism

Syntax highlighter written in JavaScript.

  • 176 languages and 8 themes
  • The core is 2KB gzipped. Each language adds 300-500 bytes.
  • Supports parallelism with Web Workers
  • Extensible via plugins, themes and languages
  • Actively developed
Pygments

Pygments

Syntax highlighter written in Python.

  • Over 300 languages and 35 styles
  • Automatic language detection
  • Extensible via lexers and formatters