Difference between revisions of "Viewerhelp:Script Editor"

From Second Life Wiki
Jump to navigation Jump to search
Line 3: Line 3:
Edits, compiles, and saves scripts written in {{Xref|LSL}}. For more information about scripting, [http://wiki.secondlife.com/wiki/LSL_Portal visit the LSL Portal].
Edits, compiles, and saves scripts written in {{Xref|LSL}}. For more information about scripting, [http://wiki.secondlife.com/wiki/LSL_Portal visit the LSL Portal].


If a script is no-modify, you're notified that "You can not view or edit this script..." and see a {{Icon_Lock|Lock}}.
If a script is no-{{xref|modify}}, you're notified that "You can not view or edit this script..." and see a {{Icon_Lock|Lock}}.


{{UIref
{{UIref
Line 15: Line 15:
{{UIref
{{UIref
|Log
|Log
|Displays messages regarding save and compiler status. If the compiler finds an error when you try to save, it displays the line and column number where it was discovered, along with a brief message about the nature of the problem.}}
|Under the main editing field, displays messages regarding save and compiler status. If the compiler finds an error when you try to save, it displays the line and column number where it was discovered, along with a brief message about the nature of the problem.}}


{{UIref
{{UIref
|List of functions
|Insert
|This dropdown menu contains a list of every built-in function in LSL. Click any function in the list to paste its name into the editing field at your cursor's location.}}
|This dropdown contains a list of every built-in function in LSL. Choose a function to paste its name into the editing field at your cursor's location.}}


{{UIref
{{UIref
Line 27: Line 27:
{{UIref
{{UIref
|Mono
|Mono
|Sets the scripting engine this script runs upon on the Second Life servers. If the box is checked, the script runs on the Mono scripting engine. If unchecked, the script runs on the older, original LSL engine. ''Not'' applicable if you're editing a script in your inventory.}}
|Runs the script on the {{xref|Mono}} scripting engine for better performance. Enabled by default. If there are compatibility issues, uncheck this to run the script on the older, original LSL engine. ''Not'' applicable if you're editing a script in your inventory.}}


{{UIref
{{UIref
Line 35: Line 35:
{{UIref
{{UIref
|Reset
|Reset
|Restarts execution of the script from the beginning. ''Not'' applicable if you're editing a script in your inventory.}}
|Restarts execution of the script from the beginning. ''Not'' applicable if you're editing a script in your inventory. Can be useful to "refresh" malfunctioning scripts.}}


The script editor also has its own set of menus above the editing field:
The script editor also has its own set of menus above the editing field:
Line 47: Line 47:
{{UIref
{{UIref
| Revert All Changes
| Revert All Changes
| Reverts the script to its last-saved state. Only available if you've made changes. }}
| Reverts the script to its last-saved state. Only available if you've made edits. }}


== Edit ==
== Edit ==
Line 53: Line 53:
{{UIref
{{UIref
| Undo
| Undo
| Undoes the last change you made to the script. Multiple undo works, so if you want to backtrack on various changes, select '''Undo''' several times.}}
Redo
 
| Undoes or redoes your last script edit. Multiple '''Undo''' and '''Redo''' work to revert or restore several edits.}}
{{UIref
| Redo
| If you decided you ''did'' want a change you used '''Undo''' on, simply select this and the change returns.}}


{{UIref
{{UIref
| Cut
| Cut
| Removes the currently-selected text and saves it to the clipboard.}}
| Removes selected text and saves it to the clipboard.}}


{{UIref
{{UIref
| Copy
| Copy
| Keeps the currently-selected text as-is but saves it to the clipboard.}}
| Saves selected text to the clipboard.}}


{{UIref
{{UIref
| Paste
| Paste
| Inserts the contents of the clipboard where the cursor is in the script editor.}}
| Inserts the contents of the clipboard at the cursor's position in the script editor.}}


{{UIref
{{UIref
Line 77: Line 74:
{{UIref
{{UIref
| Deselect
| Deselect
| Deselects what you have highlighted.}}
| Deselects the selected text.}}


{{UIref
{{UIref
| Search/Replace...
| Search/Replace...
| Opens the {{Vh|Script Search}} window.}}
| Opens {{winlink|Script Search}}.}}


== Help ==
== Help ==


{{UIref
{{UIref
| Help...
| Help
| Opens the LSL Portal with more information about scripting in Second Life.}}
| Opens a condensed view of the {{vh|LSL Portal}}, which contains information about scripting in Second Life.}}


{{UIref
{{UIref
| Keyword Help...
| Keyword Help
| Opens a window with scripting-specific interactive help.}}
| Opens {{winlink|LSL Reference}} with scripting-specific, interactive help.}}

Revision as of 12:18, 3 March 2010

BEING REVIEWED BY TORLEY... as Kool-Aid Man would say, "OH YEAHHHH."

Edits, compiles, and saves scripts written in LSL. For more information about scripting, visit the LSL Portal.

If a script is no-modify, you're notified that "You can not view or edit this script..." and see a Lock Lock.

Description

  Description of the currently open script. Not shown when editing a script inworld.
Main editing field

  Contains the actual LSL code. The editor highlights relevant LSL keywords and attempts to maintain your indentation based on bracket usage. You can hover your cursor over any keyword for a brief tooltip description of its functionality.
Log

  Under the main editing field, displays messages regarding save and compiler status. If the compiler finds an error when you try to save, it displays the line and column number where it was discovered, along with a brief message about the nature of the problem.
Insert

  This dropdown contains a list of every built-in function in LSL. Choose a function to paste its name into the editing field at your cursor's location.
Running

  Sets the running state of the script. Uncheck this box to stop execution. Not applicable if you're editing a script in your inventory.
Mono

  Runs the script on the Mono scripting engine for better performance. Enabled by default. If there are compatibility issues, uncheck this to run the script on the older, original LSL engine. Not applicable if you're editing a script in your inventory.
Save

  Saves and compiles the current code in the editing field. Confirmation and/or error messages are displayed in the log area.
Reset

  Restarts execution of the script from the beginning. Not applicable if you're editing a script in your inventory. Can be useful to "refresh" malfunctioning scripts.

The script editor also has its own set of menus above the editing field:

File

Save

  Same as the Save button described above.
Revert All Changes

  Reverts the script to its last-saved state. Only available if you've made edits.

Edit

Undo

Redo

  Undoes or redoes your last script edit. Multiple Undo and Redo work to revert or restore several edits.
Cut

  Removes selected text and saves it to the clipboard.
Copy

  Saves selected text to the clipboard.
Paste

  Inserts the contents of the clipboard at the cursor's position in the script editor.
Select all

  Highlights the whole script.
Deselect

  Deselects the selected text.
Search/Replace...

  Opens Script Search.

Help

Help

  Opens a condensed view of the LSL Portal, which contains information about scripting in Second Life.
Keyword Help

  Opens LSL Reference with scripting-specific, interactive help.