News for hackers. Stuff that matters.
Re:Rainbow.js - code syntax highlighting in 1.2kb by piranha on Monday March 26, 2012 @03:05PM (#3758158)
So... why should I use this instead of http://softwaremaniacs.org/soft/highlight/en/ ?
Re:Rainbow.js - code syntax highlighting in 1.2kb by aeontech on Tuesday March 27, 2012 @12:23AM (#3760011)
Hehe, I was just going to suggest running Rainbow against highlight.js's test suite. I doubt it would do nearly as well. Sagalaev's highlighter is awesome, he put a lot of work into it.
Re:Rainbow.js - code syntax highlighting in 1.2kb by isagalaev on Tuesday March 27, 2012 @12:19AM (#3760002)
You shouldn't. There are just too many errors in highlighting.
Re:Rainbow.js - code syntax highlighting in 1.2kb by isagalaev on Tuesday March 27, 2012 @01:40AM (#3760198)
Re:Rainbow.js - code syntax highlighting in 1.2kb by jibberia on Tuesday March 27, 2012 @01:05AM (#3760109)
This thing was written in ~2 weeks, so there's no way it can compete with a project that's 2 years old! It can either stagnate or evolve, but I think that the way the code is laid out will encourage a lot of collaboration. Personally, I love and use Highlight, but (I confess, as a textmate ho) I'd like to see rainbow improve. Competition is always good. Maybe you guys can/should help each other?
Re:Rainbow.js - code syntax highlighting in 1.2kb by isagalaev on Tuesday March 27, 2012 @01:45AM (#3760213)
Correction: highlight.js is 6 years old :-). And yes, I'm going to look into Rainbow more properly for useful ideas. And I encourage Craig to do the same. Isn't Open Source awesome? :-)
Re:Rainbow.js - code syntax highlighting in 1.2kb by nategraves on Tuesday March 27, 2012 @01:54AM (#3760235)
It is. And holy crap, 6 years, wow... time flies! I'm keeping track of both of you now. I know that collaboration on projects like these is almost impossible. Do you guys live near e/o? heh
Re:Rainbow.js - code syntax highlighting in 1.2kb by josephschmitt on Tuesday March 27, 2012 @12:28PM (#3762369)
No one says you should. It's an alternate implementation. I don't understand the "competition" angle, is there a paid version for both of these projects that is forcing people to choose one over the other?
Re:Rainbow.js - code syntax highlighting in 1.2kb by piranha on Tuesday March 27, 2012 @03:14PM (#3763148)
I believe if you are making some new application solving problem which has existing solution you should at least provide some clues why it was done.