Sha256: 1bc57a338abd7fc1d63856545f7bb4770c0c83ce2aa3efdc215536661bab614f

Contents?: true

Size: 1.52 KB

Versions: 65

Compression:

Stored size: 1.52 KB

Contents

<!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>

Version data entries

65 entries across 65 versions & 5 rubygems

Version Path
ledger_web-1.5.2 lib/ledger_web/public/codemirror/mode/plsql/index.html
omf_web-1.2.9 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
omf_web-1.2.8 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
omf_web-1.2.7 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
omf_web-1.2.6 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
omf_web-1.2.5 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
omf_web-1.2.4 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
omf_web-1.2.3 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
omf_web-1.2.2 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
omf_web-1.2.1 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
omf_web-1.2.0 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
ledger_web-1.5.1 lib/ledger_web/public/codemirror/mode/plsql/index.html
omf_web-1.0.0 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html
burp_cms-1.3.13 app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html
burp_cms-1.3.12 app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html
burp_cms-1.3.11 app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html
burp_cms-1.3.10 app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html
burp_cms-1.3.9 app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html
burp_cms-1.3.8 app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html
omf_web-0.9.9 share/htdocs/vendor/CodeMirror-2.32/mode/plsql/index.html