# JavaScript Support

JavaScript is a scripting language designed to add interactivity to HTML pages.

PDT provides support for JavaScript features in standalone JavaScript files as well as in PHP files and projects.

Some of the JavaScript features available for PHP projects and files are:

- JavaScript Element Outline - JavaScript elements will be displayed in the Outline view.
- JavaScript libraries will be added to the Include Paths of PHP projects for which JavaScript support has been enabled.
- JavaScript Build Paths - Setting the JavaScript Build Path for a project will allow you to determine which elements will be included in the project's build process. This allows access to content assist options from resources in locations other than in the project itself.
- Advanced editing functionality in JavaScript editors. For example:
- Drag and drop behavior that allows you to select a block of code and move it across lines.
- JavaScript Content Assist
- JavaScript Syntax Coloring
- JavaScript Code Commenting
- JavaScript Hover Support
- JavaScript Mark Occurrences
- JavaScript Smart Goto Source

JavaScript support can be added to new or existing PHP projects so that all of PDT 's JavaScript features are available to the project.

For a full list of features enabled for JavaScript development, see Features - Javascript Developtment Toolkit (JSDT) in the JavaScript Development Toolkit User Guide.

#### Note:

Additional user guides can be accessed from inside PDT by going to Help | Help Contents, or from the Eclipse Online Documentation site (http://help.eclipse.org/luna/index.jsp).

#### Related Links:

- 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
- Using JavaScript Syntax Coloring
- Using JavaScript Mark Occurrences