Add a new file type

Code Roar may be expanded by adding new file types. To add a new file type following steps should be performed:

 

  1. Select the "Change Settings" option from the Settings menu to active the Settings dialog.

  2. Under the "File Types" tab select the "Add New Type" button to activate the "Add New Type" dialog.

  3. Select a language lexer for the file type. You will be prompted with a warning dialog stating that any keywords you currently have configured will be erased. Since you are just configuring your new language you can safely ignore this warning message as no keywords are currently set.

  4. Select the "Coloring" tab. This tab provides the capability to configure the coloring of different components for the language specified. The list of options is based on the choice of lexer from step 3.

  5. Select a color for the foreground of your text and another color for the background. To maintain a consistent background color for all types select the "Unify Background" button. This will maintain a consistent background color for all language components. For more information on configuring colors please refer to the topic: Configuring Colors.

  6. Select the "Keywords" tab. Enter the keywords appropriate to the language you are configuring.

  7. Select the "File Extensions" tab. The File Extensions tab is used to associate a file extension with the new language type that you are creating.

  8. Select the "New" button to create a placeholder for a new file type.

  9. Type in a new extension to associated with the file type.

  10. Select a template to execute when creating a new file type. For more information on templates please refer to the topic: Taking Advantage of Templates.

  11. Click the "Ok" button to save the changes and return to the editor.