CodeMirror 2: PHP mode

	alert("And here is some JS code"); // also colored
 1
2
3
4
5
6
 
<?php
function hello($who) {
	return "Hello " . $who;
}
?>
<p>The program says <?= hello("World") ?>.</p>

Simple HTML/PHP mode based on the C-like mode. Depends on XML, JavaScript, CSS, and C-like modes.

MIME types defined: application/x-httpd-php (HTML with PHP code), text/x-php (plain, non-wrapped PHP code).