Highlight code lines in bitbucket markdown

clx-evento-efhg June 29, 2017

in my .md documents, I use code blocks in the form of

:::csharp
public class xy {
}

this works. Now I want to highlight line 1 of this code snippet. As per http://pythonhosted.org/Markdown/extensions/code_hilite.html, this should work using the "hl_lines" parameter, which would result in

:::csharp hl_lines="1"
public class xy {
}

But this does not work. Is there any way to highlight a line of code? 

1 answer

0 votes
brunjy October 17, 2017

 

you've probably already worked it out by now... but use triple-backticks instead of the triple colon

see "code blocks" here: 

https://confluence.atlassian.com/bitbucketserver/markdown-syntax-guide-776639995.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events