Configure syntax highlighting for non-standard file extensions

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Edit <FishEye home directory>/syntax/filename.map and add the file extensions using the following as a guide. For example, to add module, install, and inc as extensions to be highlighted similarly to PHP files and htm to be highlighted similarly to HTML files add the following four lines to the end of the file:

1 2 3 4 "**/*.module" php.def "**/*.install" php.def "**/*.inc" php.def "**/*.htm" html.def

Fisheye/Crucible needs to be restarted to have the changes take effect.

This file will be overwritten if Fisheye/Crucible is updated (no matter which method is used) so make sure it is saved elsewhere prior to such an event.

Solution

Related

Defining your own syntax highlighting in Crucible or Fisheye

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.