4
<title>CodeMirror: Oracle PL/SQL mode</title>
5
<link rel="stylesheet" href="../../lib/codemirror.css">
6
<script src="../../lib/codemirror.js"></script>
7
<script src="plsql.js"></script>
8
<link rel="stylesheet" href="../../doc/docs.css">
9
<style>.CodeMirror {border: 2px inset #dee;}</style>
12
<h1>CodeMirror: Oracle PL/SQL mode</h1>
14
<form><textarea id="code" name="code">
15
-- Oracle PL/SQL Code Demo
17
based on c-like mode, adapted to PL/SQL by Peter Raganitsch ( http://www.oracle-and-apex.com/ )
22
vString VARCHAR2(100);
23
cText CONSTANT VARCHAR2(100) := 'That''s it! Have fun with CodeMirror 2';
34
vString := rDATA.EMPNO || ' - ' || rDATA.ENAME;
37
SET SAL = SAL * 101/100
38
WHERE EMPNO = rDATA.EMPNO
42
SYS.DBMS_OUTPUT.Put_Line (cText);
48
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
57
Simple mode that handles Oracle PL/SQL language (and Oracle SQL, of course).
60
<p><strong>MIME type defined:</strong> <code>text/x-plsql</code>