Highlighter for JavaScript regex syntax, like RegexPal
JavaScript CSS
Switch branches/tags
Nothing to show
Latest commit 3b18494 May 8, 2014 @slevithan slevithan Merge pull request #3 from jameshfisher/master
bower.json
Permalink
Failed to load latest commit information.
themes v0.3.1 May 12, 2012
MIT-LICENSE.txt first May 9, 2012
README.md v0.3.1 May 12, 2012
bower.json license, keywords May 8, 2014
index.html v0.3.1 May 12, 2012
regex-colorizer.js v0.3.1 May 12, 2012

README.md

Regex Colorizer

Adds syntax highlighting to regular expressions for readability. Currently, only the JavaScript regex flavor is supported, with extensions for web reality. Any regex features not supported by JavaScript are marked as errors, along with some edge cases that cause cross-browser grief.

Use the following code to run Regex Colorizer for all elements on a page with class regex:

// Don't run this line if you provide your own stylesheet
RegexColorizer.addStyleSheet();

// Can provide a class name for elements to process (defaults to 'regex')
RegexColorizer.colorizeAll();

There is also a RegexColorizer.colorizeText() method that returns HTML with highlighting for the provided regex pattern string.

See Regex Colorizer's website for examples and more details.

About

Regex Colorizer copyright 2010-2012 by Steven Levithan.

Released under the MIT License.

Fork me to show support, fix, and extend.