Difference between revisions of "Viewerhelp:Script Editor"
Jump to navigation
Jump to search
Kate Linden (talk | contribs) |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Help Article Ready for Translation|status=On Hold}} | |||
{{Help Article Ready for | |||
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 you'll see a {{Icon_Lock|Lock}}. | ||
{{UIref | {{UIref | ||
Line 17: | Line 15: | ||
{{UIref | {{UIref | ||
|Log | |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.}} | ||
{{UIref | {{UIref | ||
| | |Insert | ||
|This dropdown | |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 29: | Line 27: | ||
{{UIref | {{UIref | ||
|Mono | |Mono | ||
| | |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 37: | 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. 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 | The script editor also has its own menus above the editing field: | ||
== File == | == File == | ||
Line 49: | Line 47: | ||
{{UIref | {{UIref | ||
| Revert All Changes | | Revert All Changes | ||
| Reverts the script to its last-saved state. Only available if you've made | | Reverts the script to its last-saved state. Only available if you've made edits. }} | ||
== Edit == | == Edit == | ||
Line 55: | Line 53: | ||
{{UIref | {{UIref | ||
| Undo | | Undo | ||
| Undoes | Redo | ||
| Undoes or redoes your last script edit. Multiple '''Undo''' and '''Redo''' work to revert or restore several edits.}} | |||
{{UIref | {{UIref | ||
| Cut | | Cut | ||
| Removes | | Removes selected text and saves it to the clipboard.}} | ||
{{UIref | {{UIref | ||
| Copy | | Copy | ||
| | | Saves selected text to the clipboard.}} | ||
{{UIref | {{UIref | ||
| Paste | | Paste | ||
| Inserts the contents of the clipboard | | Inserts the contents of the clipboard at the cursor's position in the script editor.}} | ||
{{UIref | {{UIref | ||
Line 79: | Line 74: | ||
{{UIref | {{UIref | ||
| Deselect | | Deselect | ||
| Deselects | | Deselects the selected text.}} | ||
{{UIref | {{UIref | ||
| Search/Replace | | Search/Replace | ||
| Opens | | Opens {{winlink|Script Search}}.}} | ||
== Help == | == Help == | ||
{{UIref | {{UIref | ||
| Help | | Help | ||
| Opens the LSL Portal | | Opens a condensed view of the {{vh|LSL Portal}}, which contains information about scripting in Second Life.}} | ||
{{UIref | {{UIref | ||
| Keyword Help | | Keyword Help | ||
| Opens | | Opens {{winlink|LSL Reference}} with scripting-specific, interactive help.}} |
Latest revision as of 11:23, 26 April 2010
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.
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. |