Photoshop CS Scripting Guide 17Scripting basicsDocumenting scripts 22.4 Documenting scriptsIt’s recommended that you use comments within your scripts to explain what procedures aretaking place. It’s a quick way to document your work for others and an important element toremember when writing scripts. Comments are ignored by the scripting system as the scriptexecutes and cause no run-time speed penalty.AppleScriptTo enter a single-line comment in an AppleScript, type “--” to the left of your description.For multiple line comments, start your comment with the characters “(*” and end it with “*)”.- this is a single-line comment(* this is amultiple line comment *)Visual BasicIn Visual Basic, enter “Rem” (for “remark”) or “ ' ” (a single straight quote) to the left of thecomment.Rem this is a comment' and so is thisJavaScriptIn JavaScript, use the double forward slash to comment a single line or a /* */ notation formulti-line comments// This comments until the end of the line/* This commentsthis entireblock of text */About long script linesIn some cases, individual script lines are too long to print on a single line in this guide.AppleScriptAppleScript uses the special character (¬) to show that the line continues to the next line.This continuation character denotes a “soft return” in the script. You can enter this character inthe script editor by pressing Option-Return at the end of the line you wish to continue.Visual BasicIn Visual Basic, you can break a long statement into multiple lines in the Code window byusing the line continuation character, which is a space followed by an underscore ( _).