diff options
author | Hugues Hiegel <root@paranoid> | 2015-03-11 16:55:04 +0100 |
---|---|---|
committer | Hugues Hiegel <root@paranoid> | 2015-03-11 16:55:04 +0100 |
commit | 99f904adcc37d93c90defcd8ce898598e25be212 (patch) | |
tree | 60a6c7b7b9cf012d6c0e8dcf5c7f4fe0a5b6fc49 /codemirror_ui/lib/CodeMirror-2.3/mode/plsql/index.html | |
parent | b2034fdfec040a67988e543a911208ef2491ce7a (diff) |
Diffstat (limited to 'codemirror_ui/lib/CodeMirror-2.3/mode/plsql/index.html')
-rw-r--r-- | codemirror_ui/lib/CodeMirror-2.3/mode/plsql/index.html | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/codemirror_ui/lib/CodeMirror-2.3/mode/plsql/index.html b/codemirror_ui/lib/CodeMirror-2.3/mode/plsql/index.html new file mode 100644 index 0000000..be603d9 --- /dev/null +++ b/codemirror_ui/lib/CodeMirror-2.3/mode/plsql/index.html @@ -0,0 +1,62 @@ +<!doctype html> +<html> + <head> + <title>CodeMirror: Oracle PL/SQL mode</title> + <link rel="stylesheet" href="../../lib/codemirror.css"> + <script src="../../lib/codemirror.js"></script> + <script src="plsql.js"></script> + <link rel="stylesheet" href="../../doc/docs.css"> + <style>.CodeMirror {border: 2px inset #dee;}</style> + </head> + <body> + <h1>CodeMirror: Oracle PL/SQL mode</h1> + +<form><textarea id="code" name="code"> +-- Oracle PL/SQL Code Demo +/* + based on c-like mode, adapted to PL/SQL by Peter Raganitsch ( http://www.oracle-and-apex.com/ ) + April 2011 +*/ +DECLARE + vIdx NUMBER; + vString VARCHAR2(100); + cText CONSTANT VARCHAR2(100) := 'That''s it! Have fun with CodeMirror 2'; +BEGIN + vIdx := 0; + -- + FOR rDATA IN + ( SELECT * + FROM EMP + ORDER BY EMPNO + ) + LOOP + vIdx := vIdx + 1; + vString := rDATA.EMPNO || ' - ' || rDATA.ENAME; + -- + UPDATE EMP + SET SAL = SAL * 101/100 + WHERE EMPNO = rDATA.EMPNO + ; + END LOOP; + -- + SYS.DBMS_OUTPUT.Put_Line (cText); +END; +-- +</textarea></form> + + <script> + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { + lineNumbers: true, + matchBrackets: true, + indentUnit: 4, + mode: "text/x-plsql" + }); + </script> + + <p> + Simple mode that handles Oracle PL/SQL language (and Oracle SQL, of course). + </p> + + <p><strong>MIME type defined:</strong> <code>text/x-plsql</code> + (PLSQL code) +</html> |