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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 Confluence Cloud

Share your Confluence Cloud experience for a chance to win $500!

Take our 5-minute survey to win a $500 Visa gift card! Are you currently using Confluence Cloud? We want to hear from you! Fill out this quick survey about your Confluence Cloud experience so we ...

144 views 1 8
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