2025-08-14 20:00:38 +02:00

34 lines
807 B
HTML

<!doctype html>
<html>
<head>
<title>Customelement CodeMirror</title>
<meta charset="utf-8">
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<script src="mode/htmlmixed/htmlmixed.js"></script>
<script src="mode/css/css.js"></script>
<script src="mode/xml/xml.js"></script>
<script src="mode/clike/clike.js"></script>
<script src="mode/php/php.js"></script>
<script src="codemirror_widget.js"></script>
</head>
<body>
<code-mirror language="text/x-php" width="800" height="600">
function add($a, $b){
return a + b;
}
</code-mirror>
<code-mirror language="text/x-php">
function add($a, $b){
return a + b;
}
</code-mirror>
</body>
</html>