Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Are XSL diffs supported in BitBucket (Server)?

Deleted user September 23, 2019

We've recently started working with a legacy project that has a lot of XML/XSL in it.

We've put it in the same QA flow which includes Pull requests and approvals etc.

The diff of the XSL, however, showed the same view as if it were an 'exotic' filetype: the possibitly to download both because 'This file can't be viewed in your browser'

I was looking for a list of supported filetypes in pull requests etc, but couldn't find it.

Can anyone help me?

Thank you,

Ignace

1 answer

0 votes
Dick
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 24, 2019

Hi Ignace,

Thank you for your question.

As of Bitbucket 3.5, we use CodeMirror for syntax highlighting. This works based on mime-type. If a mime-type is not recognised, we won't display the diff and you get the option to download.

Luckily, you can set this up in your bitbucket.properties file. Please see the guide for Configuring syntax highlighting for file extensions.

For example, if you'd like your XSL files to be syntax highlighted as XML, you should add a line to bitbucket.properties like so:

syntax.highlighter.application/xml.extensions=xml,xsl

The guide is pretty comprehensive. I hope this helps.

Cheers!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events