![]() | Ned Batchelder : Blog | Code | Text | Site Syntax coloring code in JavaScript » Home : Blog : January 2005 |
Alex Gorbatchev has another solution to the problem of syntax-coloring code snippets on blogs: ship the whole problem over to the browser, then do the coloring in JavaScript. It's a very interesting solution, and the JavaScript code itself is very cool. What I need is syntax coloring that can handle true Unicode characters. I don't know whether JavaScript regexes can do it. I've been using SilverCity, but have been thinking about a new solution. Maybe client-side JavaScript is the way to go.
tagged:
tools,
javascript
/
via:
Coding Horror» react | |
Comments
Add a comment: