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 https://bitbucket.org/site/master/.

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!

Ana 

Thanks, Ana - I am using BitBucket.org 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 Join to answer
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...

710 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot