Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

 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/filename.map 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.

 

Cheers,

Caterina - Atlassian Support

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center Apps Program coming soon

G’day Bamboo customers, As we approach GA for Bamboo Data Center , we would like to inform you that the Data Center Apps Program for Bamboo starts this quarter. How long does it take? We are g...

56 views 0 6
Read article

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