Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I have Markdown code syntax highlighting?

In my repository I have a I have formatted my code blocks with:



console.log("Hello world!");


I don't see any coloring or the rectangle surrounding the code. Just the monospace font.


How can I have code syntax highlighting?

1 answer

0 votes
Ana Retamal Atlassian Team Mar 27, 2018


Hi Achilleas! Are you using Bitbucket Server or Cloud?

I have tested that code you pasted here in my Bitbucket Cloud account, and it renders correctly, the text is surrounded in a grey box. Make sure you've selected JavaScript in the dropwdown.

If you're using Server, you can check this solution at Code blocks does not syntax highlight.

If you're still having issues, can you send us a screenshot?

Best regards,


I have the following displaying at the root directory of my project. I don't know if it's Bitbucket Server or Cloud, just the basic one.

I have marked with yellow color the javascript code which is just monospace font and no further syntax highlight. issue.png

Like razvan likes this

After couple of years, I hit the same problem.

There's no background / padding / text color, only font-family is changed

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,784 views 10 16
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you