Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Markdown code block - supported languages? Edited

I am having some problems with a .md file not displaying code blocks properly inside my bitbucket repository. Is there a list of supported markdown code block languages available.

 

Languages I've tried / would like to be shown properly:

 

c# razor view syntax

```csharp .cshtml

React jsx syntax

```jsx

2 answers

0 votes
Ana Retamal Atlassian Team Jan 10, 2018

Hi Alan! According to our documentation, all the common coding languages are supported, including C# and JSX (for reference http://codemirror.net/mode/).

For more info you can also read Configuring syntax highlighting for file extensions.

I found this and this  in our issue tracker where code that was enclosed in a code block area was treated differently, but seems like it was fixed some time ago.

Regards,

Ana

I still can't believe a company like Altassian have so poor support to these kinds of features. Yes, you actually support `jsx`, but it renders exactly like `javascript`, and... surprise! It sucks!

```jsx
import { GlobalStyles, ThemeProvider, theme } from "my-library"

const Root = () => (
<GlobalStyles>
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>
<GlobalStyles>
)

```

Screenshot 2020-03-04 at 10.15.10.png

Like Michele Mangili likes this

The markdown tutorial says "the 'short name' or the 'mimetype' of anything in" the list of Pygments lexers will work.

 

I think the syntax highlighting for file extensions is a different list from a different library.

Suggest an answer

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

525 views 6 4
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