Difference between revisions of "Viewerhelp:Script Editor"

From Second Life Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{red|BEING REVIEWED BY TORLEY... as Kool-Aid Man would say, "OH YEAHHHH."}}
{{Help Article Ready for Translation|status=On Hold}}


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-{{xref|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 you'll see a {{Icon_Lock|Lock}}.


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


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


== File ==
== File ==

Latest revision as of 11:23, 26 April 2010

KBcaution.png Important: THIS ARTICLE IS READY FOR TRANSLATION. On Hold

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 you'll 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. Can be useful to "refresh" malfunctioning scripts. Not applicable if you're editing a script in your inventory.

The script editor also has its own 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.