Get started with rainbow CDN

Apache-2.0 licensed

Rainbow library: Popular web code highlighting, syntax highlights text areas or tags.

Tags:
  • code
  • syntax
  • highlighting

Stable version

Copied!

How to start using rainbow CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with rainbow CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.12/styles/default.min.css">
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/highlight.min.js"></script>
  <script src="https://cdn.cdnhub.io/rainbow/2.1.7/js/rainbow.min.js"></script>
</head>
<body>
  <div id="editor"></div>
  <script>
    const editor = new Rainbow({
      el: '#editor',
      mode: 'html' // or any other supported mode
    });
  </script>
</body>
</html>

All versions