Enabling Code Assist to work with AFLAX [edit]

Introduction

This tutorial explains how to use the File View to access the AFLAX library and add it to the Code Assist Profiles View if you have not created an AFLAX-specific project. (See Getting started with Aptana and AFLAX.) Adding the AFLAX library to the Code Assist Profiles View will enable Code Assist for AFLAX while you work on other JavaScript and HTML files. (If you have not already done so, download AFLAX and save it to your hard drive.)

  1. Access AFLAX.
    1. In the File View, browse to the folder where your copy of AFLAX is located.
    2. From the aflax folder, go to src > AFLAX.
  2. Activate the AFLAX Profile.
    1. In the AFLAX folder, double-click the aflax.js file to open it in the Aptana JavaScript Editor.

      Check that it is the documented version. You should see blue-colored documentation blocks throughout the code.

    2. Close the file.
    3. Drag the documented aflax.js file into your current profile in the Code Assist Profiles View.
  3. Test AFLAX Code Assist.
    1. Open any JavaScript or HTML file (or create a new file) in the Editor.
    2. Type the string "AFLAX."

      Immediately after you type the period (.), a Code Assist menu opens, displaying the available methods and properties for AFLAX.