1.1.0 • Published 7 years ago

codemirror-mode-apex v1.1.0

Weekly downloads
54
License
MIT
Repository
github
Last release
7 years ago

codemirror-mode-apex

A CodeMirror mode for Salesforce Apex development

Installation instructions

  • Install from NPM: npm install codemirror-mode-apex
  • Include the new mode into your project, e.g.
<script src="./node_modules/codemirror/lib/codemirror.js"></script>
<script src="./node_modules/codemirror-mode-apex/dist/apex.js"></script>
  • Set the mode to text/x-apex in your editor, e.g.
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
        mode: "text/x-apex"
      });

The index.html file in this project includes a simple example. Note that CodeMirror must be installed through NPM as a dependency of codemirror-mode-apex for that page to display correctly.

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago