CodeMirror: Difference between revisions
No edit summary |
|||
Line 6: | Line 6: | ||
== Installation == | == Installation == | ||
=== CodeMirror === | |||
Download the [http://codemirror.net/codemirror.zip latest release] or clone the repository <code>git clone <nowiki>https://github.com/codemirror/CodeMirror.git</nowiki></code> | Download the [http://codemirror.net/codemirror.zip latest release] or clone the repository <code>git clone <nowiki>https://github.com/codemirror/CodeMirror.git</nowiki></code> | ||
=== Brackets === | |||
1. Open the Extension Manager <code>File > Extension Manager</code> | |||
2. Search for “NSIS” | |||
3. Click on the install button | |||
== Basic Usage == | == Basic Usage == |
Revision as of 13:22, 20 October 2015
Description
As of version 5.8, the JavaScript text-editor CodeMirror supports NSIS 2.46 and 3.0b2. See it in action on the demo page!
CodeMirror modes can also be used with the Adobe Brackets and Light Table code editors.
Installation
CodeMirror
Download the latest release or clone the repository git clone https://github.com/codemirror/CodeMirror.git
Brackets
1. Open the Extension Manager File > Extension Manager
2. Search for “NSIS”
3. Click on the install button
Basic Usage
The easiest way to use CodeMirror is to simply load the script and style sheet found under lib/
in the distribution, plus a mode script from one of the mode/
directories. (See the compression helper for an easy way to combine scripts.)
For example:
<script src="lib/codemirror.js"></script> <link rel="stylesheet" href="lib/codemirror.css"> <script src="mode/nsis/nsis.js"></script>
Alternatively, you can load CodeMirror from a Content Delivery Network such as cdnjs:
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.8.0/codemirror.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.8.0/codemirror.min.js"> <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.8.0/nsis/nsis.js"></script>
Refer to the CodeMirror Manual for further usage examples.
License
Released under The MIT License.
Links
- CodeMirror website
- CodeMirror on GitHub
- NSIS mode on GitHub