Craig Campbell
Craig Campbell
Hi there, I am sorry for not working on this project in so long. I am back to it now, and have just released version 2.0. I'd be happy to...
Okay so a couple things. First of all I would just set the language to html for xml to get the highlighting cause as far as the syntax highlighting goes...
Can you also add some unit tests for this?
I think this has to do with the browser treating it as html. Rainbow shouldn’t add anything itself. For HTML highlighting you have to use HTML entities. Try replacing ``...
Can you give me a simple example of how to reproduce this? Just a `Rainbow.extend()` call with the pattern and the input code. I tried using your code for `_replaceAtPosition`,...
This actually applies for other languages as well, but Ruby doesn't inherit from the generic patterns right now. Originally I was processing comments first. This allowed multiline strings to work...
Actually this seems to work in the generic patterns perhaps not intentionally ha. 
You can't include partial definitions, but you can highlight a block using another language syntax which you can define. For example for embedded php in html ``` javascript Rainbow.extend('html', [...
Hmm. This must be related to the package.json `main` referencing `rainbow-node.js` and not `rainbow.js`. I'm not sure if there is an easy way to get around this or not. I...
Hmm. That seems a bit strange. Do you know if there is a library you are using that might be defining module.exports from the browser? I think this is a...