Sha256: 83c91a5d39ceb872b204972b3aecd6eff91c4f6ff539dc204728624eb679056e

Contents?: true

Size: 1.51 KB

Versions: 17

Compression:

Stored size: 1.51 KB

Contents

<!doctype html>
<html>
  <head>
    <title>CodeMirror 2: Smalltalk mode</title>
    <link rel="stylesheet" href="../../lib/codemirror.css">
    <script src="../../lib/codemirror.js"></script>
    <script src="smalltalk.js"></script>
    <link rel="stylesheet" href="../../theme/default.css">
    <link rel="stylesheet" href="../../css/docs.css">
    <style>
      .CodeMirror {border: 2px solid #dee; border-right-width: 10px;}
      .CodeMirror-gutter {border: none; background: #dee;}
      .CodeMirror-gutter pre {color: white; font-weight: bold;}
    </style>
  </head>
  <body>
    <h1>CodeMirror 2: Smalltalk mode</h1>

<form><textarea id="code" name="code">
" 
    This is a test of the Smalltalk code
"
Seaside.WAComponent subclass: #MyCounter [
    | count |
    MyCounter class &gt;&gt; canBeRoot [ ^true ]

    initialize [
        super initialize.
        count := 0.
    ]
    states [ ^{ self } ]
    renderContentOn: html [
        html heading: count.
        html anchor callback: [ count := count + 1 ]; with: '++'.
        html space.
        html anchor callback: [ count := count - 1 ]; with: '--'.
    ]
]

MyCounter registerAsApplication: 'mycounter'
</textarea></form>

    <script>
      var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
        lineNumbers: true,
        matchBrackets: true,
        mode: "text/x-stsrc",
        indentUnit: 4
      });
    </script>

    <p>Simple Smalltalk mode.</p>

    <p><strong>MIME types defined:</strong> <code>text/x-stsrc</code>.</p>
  </body>
</html>

Version data entries

17 entries across 16 versions & 6 rubygems

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