The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Highlight code lines in bitbucket markdown

clx-evento-efhg
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

TAGS
AUG Leaders

Atlassian Community Events