You are here: User Guide > Tasks > Developing with JavaScript > Using JavaScript Mark Occurrences

Using JavaScript Mark Occurrences

The JavaScript Mark Occurrences feature allows you to see where a variable, method or type is referenced within a JavaScript file.

 

 

Instructions on how to complete a procedure

To use Mark Occurrences:

Stand on a variable, method or type in your file.

All instances where the element is referenced within the file will be highlighted.

 

 

 

Instructions on how to complete a procedure

To configure Mark Occurrences settings:

  1. To toggle mark occurrences, click the Toggle Mark Occurrences button on the toolbar -or- press Alt+Shift+O.

  2. To configure further Mark Occurences preferences, go to the JavaScript Mark Occurrences preferences page, accessed from Window | Preferences | Web | JavaScript | Editor | Mark Occurrences.

Mark Occurrences Preferences Page

  1. Mark the "Mark occurrences of the selected element" checkbox to enable the Mark Occurrences feature.

  2. Select which element's occurrences will be marked by marking the checkboxes next to the required elements.

  3. Mark the "Keep marks when the selection changes'" checkbox for marks to continue to be displayed once the cursor has been moved from the selected element.

  4. Click Apply to apply your changes.

Note:

The appearance of marked occurrences can be configured in the Annotations preferences page (Window | Preferences | General | Editors | Text Editors | Annotations).

 

 

 

Related Links:

JavaScript Support

Developing with JavaScript
Enabling JavaScript Support in PHP Projects

Setting the JavaScript Build Path

Viewing JavaScript Elements in the Outline View

Using JavaScript Content Assist

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.