This is a complex demonstration of the PHP+HTML+JavaScript+CSS mixed-mode syntax highlight capabilities of CodeMirror. <?php ... ?> tags use the PHP parser, <script> tags use the JavaScript parser, and <style> tags use the CSS parser. The rest of the content is parsed using the XML parser in HTML mode.

Features of the PHP parser: