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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

26,125 views 26 12
Join discussion

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