Editing Scripts

After you insert a script into a topic or create a snippet from a script, you might decide later that the script needs to be altered. You can edit the script using the steps below. If you edit a script contained in a snippet, the changes are automatically reflected in any topics where you have inserted the snippet previously.

How to Edit a Script

  1. Open the content file.
  2. In the XML Editor, right-click the script that you want to modify.
  3. From the context menu, select Edit Script. The Insert Script dialog opens.
  4. Make the necessary changes to the script—either the language and/or the script code itself.
  5. Click OK.
  6. Click Save the active file. to save your work.