diff options
author | Pushkar Joshi | 2012-02-24 12:08:49 -0800 |
---|---|---|
committer | Pushkar Joshi | 2012-02-24 12:08:49 -0800 |
commit | 03ca7a5ed13c25faaa9100bb666e062fd15335e6 (patch) | |
tree | c51112223ceb9121cd595a60335eb2795215590f /js/codemirror/mode/plsql/index.html | |
parent | fcb12cc09eb3cd3b42bd215877ba18f449275b75 (diff) | |
parent | 053fc63a2950c7a5ee4ebf98033b64d474a3c46e (diff) | |
download | ninja-03ca7a5ed13c25faaa9100bb666e062fd15335e6.tar.gz |
Merge branch 'pentool' into brushtool
Conflicts:
imports/codemirror/mode/scheme/scheme.js
js/tools/BrushTool.js
Diffstat (limited to 'js/codemirror/mode/plsql/index.html')
-rw-r--r-- | js/codemirror/mode/plsql/index.html | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/js/codemirror/mode/plsql/index.html b/js/codemirror/mode/plsql/index.html deleted file mode 100644 index 8c7bf7ca..00000000 --- a/js/codemirror/mode/plsql/index.html +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>CodeMirror 2: 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="../../theme/default.css"> | ||
9 | <link rel="stylesheet" href="../../css/docs.css"> | ||
10 | <style>.CodeMirror {border: 2px inset #dee;}</style> | ||
11 | </head> | ||
12 | <body> | ||
13 | <h1>CodeMirror 2: Oracle PL/SQL mode</h1> | ||
14 | |||
15 | <form><textarea id="code" name="code"> | ||
16 | -- Oracle PL/SQL Code Demo | ||
17 | /* | ||
18 | based on c-like mode, adapted to PL/SQL by Peter Raganitsch ( http://www.oracle-and-apex.com/ ) | ||
19 | April 2011 | ||
20 | */ | ||
21 | DECLARE | ||
22 | vIdx NUMBER; | ||
23 | vString VARCHAR2(100); | ||
24 | cText CONSTANT VARCHAR2(100) := 'That''s it! Have fun with CodeMirror 2'; | ||
25 | BEGIN | ||
26 | vIdx := 0; | ||
27 | -- | ||
28 | FOR rDATA IN | ||
29 | ( SELECT * | ||
30 | FROM EMP | ||
31 | ORDER BY EMPNO | ||
32 | ) | ||
33 | LOOP | ||
34 | vIdx := vIdx + 1; | ||
35 | vString := rDATA.EMPNO || ' - ' || rDATA.ENAME; | ||
36 | -- | ||
37 | UPDATE EMP | ||
38 | SET SAL = SAL * 101/100 | ||
39 | WHERE EMPNO = rDATA.EMPNO | ||
40 | ; | ||
41 | END LOOP; | ||
42 | -- | ||
43 | SYS.DBMS_OUTPUT.Put_Line (cText); | ||
44 | END; | ||
45 | -- | ||
46 | </textarea></form> | ||
47 | |||
48 | <script> | ||
49 | var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | ||
50 | lineNumbers: true, | ||
51 | matchBrackets: true, | ||
52 | indentUnit: 4, | ||
53 | mode: "text/x-plsql" | ||
54 | }); | ||
55 | </script> | ||
56 | |||
57 | <p> | ||
58 | Simple mode that handles Oracle PL/SQL language (and Oracle SQL, of course). | ||
59 | </p> | ||
60 | |||
61 | <p><strong>MIME type defined:</strong> <code>text/x-plsql</code> | ||
62 | (PLSQL code) | ||
63 | </html> | ||