Questions tagged [rainbow-js]

Rainbow is a code syntax highlighting library written in JavaScript.

Official site: http://craig.is/making/rainbows/

9 questions
3
votes
2 answers

rainbow.js doesn't run Rainbow.color(); on startup

I'm using - or maybe I'm trying to use the rainbow.js syntax highlighting library for the code snippets I publish on my blog (Google Blogger). I think I'm using it correctly:

// here goes the…
ducin
  • 25,621
  • 41
  • 157
  • 256
2
votes
1 answer

Cannot match specific group in JavaScript regex

regex101 JSFiddle I'm using the Rainbow.js library to add syntax highlighting to LaTeX code like so: Rainbow.extend('latex', [ { 'name': 'comment', 'pattern': /%.*$/gm }, { 'name': 'storage.function', …
Sean Allred
  • 3,558
  • 3
  • 32
  • 71
1
vote
1 answer

Vue typescript import dependency

Am attempting to add the rainbow-code node module to my Vue Application that utilizes TypeScript. This application was generated using vue-cli. rainbow-code is a code syntax module that is not written in Typescript I am attempting to distribute this…
G Bravo
  • 77
  • 12
0
votes
0 answers

Not able to install rainbow kit

Errors while installing rainbowkit How to resolve these errors and install the rainbow kit. I am facing these errors while trying to install the rainbow kit to integrate the wallet and react hooks. npm install @rainbow-me/rainbowkit wagmi ethers I…
0
votes
1 answer

How to Integrate Copy to Clipboard with Rainbow Syntax Highlighter

I am trying to integrate a basic, "copy to clipboard" function with Rainbow syntax highlighting library. Each code snippet on the page receives highlighting and can be copied to the clipboard by clicking a "Copy" button. Copy buttons are a common…
jottin
  • 241
  • 1
  • 9
0
votes
1 answer

Ember uglify breaks rainbow.js

I am trying to add rainbow code samples to my ember project. I installed rainbow through bower and it works locally. However when I build and deploy to staging I am getting JS console errors. As far as I can tell this is the minified version of…
0
votes
1 answer

Defining font inside javascript code with other javascript code

I have this Javascript in my HTML and I would like do change the font with a other Javascript code. This is the script I use that shows a sentence by hour.