Adding new browser support

From Aptana Development

This page describes how to add support for a browser to Aptana.

Contents

Introduction

Aptana includes browser support as part of its Code Assist and online help. Initially, the Aptana development team focused on the most popular browsers (e.g. Firefox, IE, Safari, etc.) when it added browser support information to the Code Assist metadata.

If you would like to see support information for a browser that is not yet included in Aptana, you can add the support by modifying a set of XML files. The instructions below list which files you will need to modify and the XML node(s) that contain the browser support information.

Instructions

You will need to access the files listed below, and then add new "browser" nodes in the XML files for your browser.

Files

In the Aptana source control, check out the following XML files from the following locations:

  • \depot\products\ide\plugins\com.aptana.ide.editor.css\src\com\aptana\ide\editor\css\resources\css.xml
  • \depot\products\ide\plugins\com.aptana.ide.editor.html\src\com\aptana\ide\editor\html\resources\html.xml
  • \depot\products\ide\plugins\com.aptana.ide.editor.js\src\com\aptana\ide\editor\js\resources\dom_0.xml
  • \dev\depot\products\ide\plugins\com.aptana.ide.editor.js\src\com\aptana\ide\editor\js\resources\dom_2.xml
  • \dev\depot\products\ide\plugins\com.aptana.ide.editor.js\src\com\aptana\ide\editor\js\resources\js_core.xml

Example

For each file that you opened, add a new "browser" node (under the "browsers" node) for each new browser that you are adding support information. You will need to do this for every class, attribute, property, etc, for the information to be comprehensive. An example of a "browsers" node from the CSS metadata is shown below:

<field name="list-style-image" type="String">
			<description>Specifies the URL to an image to use for list items.</description>
			<hint>[url(image-url) | "none"]</hint>
			<browsers>
				<browser platform="IE" version="4.0+" />
				<browser platform="Netscape" version="6.0+" />
				<browser platform="Mozilla" version="1.0+" />
				<browser platform="Opera" version="4.0+" />
				<browser platform="Safari" version="1.0+" />
			</browsers>
			<example>To specify an unordered list that uses an image called "bluestar.gif" for a bullet, use the following syntax:  <code>ul {	url(bluestar.gif)}</code>.</example>
        </field>

Getting your changes into Aptana

After you have made all of your changes to the XML files, email the XML files to a member of the Aptana team in order to have your changes integrated into the IDE.