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
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!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.