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

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,897 views 0 7
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