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
Procedure
- In the navigation pane of the Preferences window, click Autocomment to open the Autocomment preference page.
- In the Autocomment Language Profiles group, click Add to open the New Profile dialog box.
- 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.
- 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.
- Click OK to create the new language profile and close the New Profile dialog box.
- In the Extension Associations group,
do one of the following:
- 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.
- To add a new file name extension to associate with the
new language profile:
- Click Add to open the Add File Extension dialog box.
- 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.
- 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.
- Click OK to add the new file name extension and its associated language profile to the list of extension associations.
- 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. - Click Apply to save your selections in the preference page.