github.com/jancarloviray/community@v0.41.1-0.20170124221257-33a66c87cf2f/app/public/codemirror/mode/octave/index.html (about)

     1  <!doctype html>
     2  
     3  <title>CodeMirror: Octave mode</title>
     4  <meta charset="utf-8"/>
     5  <link rel=stylesheet href="../../doc/docs.css">
     6  
     7  <link rel="stylesheet" href="../../lib/codemirror.css">
     8  <script src="../../lib/codemirror.js"></script>
     9  <script src="octave.js"></script>
    10  <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
    11  <div id=nav>
    12    <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
    13  
    14    <ul>
    15      <li><a href="../../index.html">Home</a>
    16      <li><a href="../../doc/manual.html">Manual</a>
    17      <li><a href="https://github.com/codemirror/codemirror">Code</a>
    18    </ul>
    19    <ul>
    20      <li><a href="../index.html">Language modes</a>
    21      <li><a class=active href="#">Octave</a>
    22    </ul>
    23  </div>
    24  
    25  <article>
    26  <h2>Octave mode</h2>
    27  
    28      <div><textarea id="code" name="code">
    29  %numbers
    30  [1234 1234i 1234j]
    31  [.234 .234j 2.23i]
    32  [23e2 12E1j 123D-4 0x234]
    33  
    34  %strings
    35  'asda''a'
    36  "asda""a"
    37  
    38  %identifiers
    39  a + as123 - __asd__
    40  
    41  %operators
    42  -
    43  +
    44  =
    45  ==
    46  >
    47  <
    48  >=
    49  <=
    50  &
    51  ~
    52  ...
    53  break zeros default margin round ones rand
    54  ceil floor size clear zeros eye mean std cov
    55  error eval function
    56  abs acos atan asin cos cosh exp log prod sum
    57  log10 max min sign sin sinh sqrt tan reshape
    58  return
    59  case switch
    60  else elseif end if otherwise
    61  do for while
    62  try catch
    63  classdef properties events methods
    64  global persistent
    65  
    66  %one line comment
    67  %{ multi 
    68  line commment %}
    69  
    70      </textarea></div>
    71      <script>
    72        var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
    73          mode: {name: "octave",
    74                 version: 2,
    75                 singleLineStringErrors: false},
    76          lineNumbers: true,
    77          indentUnit: 4,
    78          matchBrackets: true
    79        });
    80      </script>
    81  
    82      <p><strong>MIME types defined:</strong> <code>text/x-octave</code>.</p>
    83  </article>