Using the JavaScript Editor


    When using the JavaScript Editor, you can use the following items on the JavaScript Editor toolbar:

    Note: See Setting Source preferences for information about setting JavaScript Editor preferences.

    • The Toggle Error Display button Toggle Head Section icon  shows and hides a pane in the top section of the JavaScript Editor. After you check the syntax of your code, any errors are listed in the error display pane. You can move the cursor where an error is located in your code by clicking the error in the error display pane.
    • The Check Syntax button Syntax button  checks the syntax of your code. If any errors are found, the error display pane opens (if it's not already open) and the cursor is placed where the first error is located in your code.
    • The Display Errors button Display Errors button  shows the number of errors to the right of the button.
    • The Display Warnings button Display Warnings button  shows the number of warnings to the right of the button.
    • The Word Wrap button Word Wrap button  toggles the wrapping of source code at the margin of the JavaScript Editor on and off.
    • The Numbers button Line Numbers button  shows the code line numbers.
    • The Colorize None Colorize Nothing button button turns off the color for all items.
    • The Theme menu enables you to choose a theme for the current document (see Setting Source preferences).
    • The Function pop-up Function menu menu enables you to navigate through code (see Navigating through code).