Is it possible to associate a "Syntax highlight" mode with a file extension for a repo?

I have an R language repository with lots of .Rmd (R Markdown) files, which I obviously want to view as Markdown in the online (CodeMirror) editor. Is there any way to make that association, maybe at the level of the repository?

1 answer

0 vote

Hi Stas, you can do that at the repo level. If you're you using Bitbucket Cloud, you can find it by clicking your avatar > Bitbucket settings > Repository settings > Language. However, R is not listed there at the moment so you might want to consider submitting a Feature request at

If you're using Bitbucket Server, you can find the instructions at Configuring syntax highlighting for file extensions. Depending on which version you're using, you might be affected by this bug BSERV-9915. If you need further assistance, let us know which version of Bitbucket Server you have. 

Hope that helps!


Thanks, Ana - I am using online only for this repo. The language in that repo was set to R (which is available as a language). I guess we are talking about different tools here.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,774 views 1 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you