Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Would it be possible to disable syntax highlighting for json files in fisheye?


 It makes big reviews that include jsons unusable due to large amount of data transfers which increase size of the diff 20 times. Moreover, the web browser is barely capable of handling such massive data.


1 answer

1 accepted

0 votes
Answer accepted

Hi @Amritha Chakkanadan,

We should investigate the root cause of the issue further, since this is unlikely that the syntax highlight is causing the behaviour and disabling it will fix it. At the same time, we need to keep in mind the impact on the end users once the syntax highlight is not available.


Disabling syntax highlight

In Fisheye it is possible to disable syntax highlight for a specific file extension by removing it from the <FishEye home directory>/syntax/ list.

When opening this file, you'll notice the following definition:

"**/*.java" java.def "Java"
"**/*.scala" scala.def "Scala"
"**/*.js" javascript.def "JavaScript/ECMAScript"
"**/*.json" javascript.def
"**/*.as" javascript.def "ActionScript"

To remove json files to be syntax highlighted, please remove the line mentioning json and keep the rest of the file as is. This is how the first lines will be after the update:

"**/*.java" java.def "Java"
"**/*.scala" scala.def "Scala"
"**/*.js" javascript.def "JavaScript/ECMAScript"
"**/*.as" javascript.def "ActionScript"

To make this change persist across upgrades, you can also copy the file in the FISHEYE_INST/syntax directory and update it there.

A restart is required for the change to take effect.



Caterina - Atlassian Support

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

188 views 0 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you