Creating a new language profile

You can create new language profiles for any programming languages that you want to work with in the editor.

About this task

To create a new language profile, complete the following steps:

Procedure

  1. In the navigation pane of the Preferences window, click Autocomment to open the Autocomment preference page.
  2. In the Autocomment Language Profiles group, click Add to open the New Profile dialog box.
  3. In the Profile Name field, type a descriptive name for your new profile that reflects the name of the programming language for which you are creating the new language profile.
  4. From the Start with values from drop-down list, select the existing language profile on which you want to base your new language profile.
    This provides a starting point (with default values) from which you can customize the new language profile.
  5. Click OK to create the new language profile and close the New Profile dialog box.
  6. In the Extension Associations group, do one of the following:
    1. To associate an existing file name extension with the new language profile, click the extension in the Extension column of the table. From the drop-down list in the corresponding Profile column, select the language profile that you want to associate with the selected extension.
    2. To add a new file name extension to associate with the new language profile:
      1. Click Add to open the Add File Extension dialog box.
      2. In the Extension field, type the file extension that you want to add, starting with the period character (.). For example, .mak.
        Note: File extensions are case insensitive.
      3. From the Language Profile drop-down list, select the language profile that you want to be the default profile for the specified file extension. It is recommended that you choose a language profile that has a comment syntax similar to the file extension.
      4. Click OK to add the new file name extension and its associated language profile to the list of extension associations.
    3. To remove an existing file name extension from the Extension Association table, select the extension, and then click Remove.
    Tip: If a file extension is not associated with a language profile, the C language profile is used by default.
  7. Click Apply to save your selections in the preference page.