This is a CodeMirror mode that brings syntax highlighting for Perl Compatible Regular Expressions (PCRE).
MIME types defined:
Options:
Table of contents:
Below is a demonstration of how the PCRE mode can be used to highlight regular expressions within other languages (here, nginx).
This is a slightly adjusted copy of `man pcresyntax`. This man page reflects most PCRE syntactic structures in a colourful way thanks to CodeMirror and the PCRE mode.
`man pcrepattern` is much longer than `man pcresyntax`, which is why only its examples were reproduced below.