Sha256: 8b3811e1599f5566f1d70987ac3bad0d19882faff248715fb535faa2f71ed3a2

Contents?: true

Size: 1.58 KB

Versions: 15

Compression:

Stored size: 1.58 KB

Contents

<!doctype html>
<html>
  <head>
    <title>CodeMirror 2: 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="../../theme/default.css">
    <link rel="stylesheet" href="../../css/docs.css">
    <style>.CodeMirror {border: 2px inset #dee;}</style>
  </head>
  <body>
    <h1>CodeMirror 2: 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

15 entries across 14 versions & 4 rubygems

Version Path
erp_app-3.0.7 public/javascripts/erp_app/codemirror/mode/plsql/index.html
erp_app-3.0.6 public/javascripts/erp_app/codemirror/mode/plsql/index.html
erp_app-3.0.5 public/javascripts/erp_app/codemirror/mode/plsql/index.html
erp_app-3.0.4 public/javascripts/erp_app/codemirror/mode/plsql/index.html
erp_app-3.0.3 public/javascripts/erp_app/codemirror/mode/plsql/index.html
erp_app-3.0.2 public/javascripts/erp_app/codemirror/mode/plsql/index.html
erp_app-3.0.1 public/javascripts/erp_app/codemirror/mode/plsql/index.html
erp_app-3.0.0 public/javascripts/erp_app/codemirror/mode/plsql/index.html
AmberRack-0.1.0 app/javascripts/lib/CodeMirror/mode/plsql/index.html
AmberRack-0.1.0 public/CodeMirror/mode/plsql/index.html
keydown-0.9.2 templates/generate/deck.js/extensions/codemirror/mode/plsql/index.html
keydown-0.9.1 templates/generate/deck.js/extensions/codemirror/mode/plsql/index.html
keydown-0.9.0 templates/generate/deck.js/extensions/codemirror/mode/plsql/index.html
liquid_cms-0.3.2.0 lib/generators/liquid_cms/templates/public/cms/codemirror/mode/plsql/index.html
liquid_cms-0.2.2.0 generators/liquid_cms/templates/public/cms/codemirror/mode/plsql/index.html