mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-04-04 14:49:44 +07:00
33 lines
1016 B
HTML
33 lines
1016 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>CodeMirror: Verilog mode</title>
|
|
<link rel="stylesheet" href="../../lib/codemirror.css">
|
|
<script src="../../lib/codemirror.js"></script>
|
|
<script src="verilog.js"></script>
|
|
<link rel="stylesheet" href="../../doc/docs.css">
|
|
<style>.CodeMirror {border: 2px inset #dee;}</style>
|
|
</head>
|
|
<body>
|
|
<h1>CodeMirror: Verilog mode</h1>
|
|
|
|
<form><textarea id="code" name="code">
|
|
/** Verilog code required */
|
|
</textarea></form>
|
|
|
|
<script>
|
|
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
|
lineNumbers: true,
|
|
matchBrackets: true,
|
|
mode: "text/x-verilog"
|
|
});
|
|
</script>
|
|
|
|
<p>Simple mode that tries to handle Verilog-like languages as well as it
|
|
can. Takes one configuration parameters: <code>keywords</code>, an
|
|
object whose property names are the keywords in the language.</p>
|
|
|
|
<p><strong>MIME types defined:</strong> <code>text/x-verilog</code> (Verilog code).</p>
|
|
</body>
|
|
</html>
|