Spellscript IDE
From Hack/Mine Wiki
(Difference between revisions)
m (Reverted edits by 37.233.27.142 (talk) to last revision by Frizzil) |
|||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | The '''Spellscript IDE''' (i.e. '''I'''nteractive '''D'''evelopment '''E'''nvironment) is a code editor for Spellscript introduced in H/M version 0.6.4. It features syntax-highlighting and an increasing number of keyboard shortcuts to make script creation much easier than it would be in a normal text editor. | + | The '''Spellscript IDE''' (i.e. '''I'''nteractive '''D'''evelopment '''E'''nvironment) is a code editor for Spellscript introduced in H/M version 0.6.4. It features syntax-highlighting, undo/redo functionality, and an increasing number of keyboard shortcuts to make script creation much easier than it would be in a normal text editor. |
| − | When an object in Minecraft is capable of being scripted via the Spellscript IDE, we refer to that object as a ''scriptable''. | + | When an object in Minecraft is capable of being scripted via the Spellscript IDE, we refer to that object as a ''scriptable''. As of this writing, scriptables include [[Spellscript blocks]], [[console scripts]], and [[schedulable scripts]]. |
==Important Commands== | ==Important Commands== | ||
| Line 23: | Line 23: | ||
|- | |- | ||
! Key Binding || Description | ! Key Binding || Description | ||
| + | |- | ||
| + | | '''ctrl'''+'''z''' || Undoes the last action. | ||
| + | |- | ||
| + | | '''ctrl'''+'''shift'''+'''z''' || Redoes the last action. | ||
| + | |- | ||
| + | | '''ctrl'''+'''y''' || Redoes the last action. | ||
|- | |- | ||
| '''ctrl'''+'''c''' || Copies the current selection to the system clipboard. | | '''ctrl'''+'''c''' || Copies the current selection to the system clipboard. | ||
| Line 31: | Line 37: | ||
|- | |- | ||
| '''ctrl'''+'''a''' || Selects all text in the editor. | | '''ctrl'''+'''a''' || Selects all text in the editor. | ||
| + | |- | ||
| + | | '''shift'''+'''tab''' || Unindent the current line | ||
| + | |- | ||
| + | | '''ctrl'''+'''+''' || Zoom in | ||
| + | |- | ||
| + | | '''ctrl'''+'''-''' || Zoom out | ||
| + | |- | ||
| + | | '''ctrl'''+<dir> || Move the beginning/end of the current line, or top/bottom of the script. | ||
| + | |- | ||
| + | | '''shift'''+<dir> || Expand the current selection in the specified direction. | ||
|} | |} | ||
==Customization== | ==Customization== | ||
The color scheme for syntax highlighting is specified in ''.minecraft/syntaxHighlight.txt''. Each color is in hex format with optional alpha at the beginning (so either ''RRGGBB'' or ''AARRGGBB''). | The color scheme for syntax highlighting is specified in ''.minecraft/syntaxHighlight.txt''. Each color is in hex format with optional alpha at the beginning (so either ''RRGGBB'' or ''AARRGGBB''). | ||
Latest revision as of 17:45, 4 September 2014
The Spellscript IDE (i.e. Interactive Development Environment) is a code editor for Spellscript introduced in H/M version 0.6.4. It features syntax-highlighting, undo/redo functionality, and an increasing number of keyboard shortcuts to make script creation much easier than it would be in a normal text editor.
When an object in Minecraft is capable of being scripted via the Spellscript IDE, we refer to that object as a scriptable. As of this writing, scriptables include Spellscript blocks, console scripts, and schedulable scripts.
[edit] Important Commands
| Key Binding | Description |
|---|---|
| esc | Compiles the script, then exits the screen on success (otherwise the resulting error message is displayed to the user.) |
| ctrl+enter | Compiles the script and displays the result to the user. |
| ctrl+/ | Pulls up the Info Screen, which contains information specific to the current scriptable. This includes which variables are in scope, what type of return value is expected (if any), and an explanation of the scriptable, its variables, etc. |
| ctrl+m | Pulls up the Methods Screen, which contains all of the methods available in the current environment. |
| ctrl+g | Pulls up the Globals Screen, which contains a list of the global variables available in the current environment. |
[edit] Other Commands
| Key Binding | Description |
|---|---|
| ctrl+z | Undoes the last action. |
| ctrl+shift+z | Redoes the last action. |
| ctrl+y | Redoes the last action. |
| ctrl+c | Copies the current selection to the system clipboard. |
| ctrl+v | Pastes from the system clipboard. |
| ctrl+x | Copies the current selection to the system clipboard and deletes it. |
| ctrl+a | Selects all text in the editor. |
| shift+tab | Unindent the current line |
| ctrl++ | Zoom in |
| ctrl+- | Zoom out |
| ctrl+<dir> | Move the beginning/end of the current line, or top/bottom of the script. |
| shift+<dir> | Expand the current selection in the specified direction. |
[edit] Customization
The color scheme for syntax highlighting is specified in .minecraft/syntaxHighlight.txt. Each color is in hex format with optional alpha at the beginning (so either RRGGBB or AARRGGBB).