Forums

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

How can you highlight code in pages from bitbucket.io?

yenrabEd
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 7, 2019

I need to serve pages containing code snippets. What is a successful approach when serving from bitbucket.io? If the answer is Markdown, how is that implemented in bitbucket.io?

 

Thanks

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 9, 2019

Hello Lee and welcome to the Community!

Bitbucket cloud has a wiki built in that you’re able to enable which will allow you to serve code snippets and additional documentation. Firstly, you’re going to want to enable the Bitbucket wiki by following these steps:

  1. From the repository, click Settings.
  2. Click Wiki in the settings navigation.
  3. Select Public Wiki or Private Wiki from the Wiki settings page. A private Wiki is only visible to people who have permission to see it. Anyone can view, edit, or create pages for a public Wiki. Learn more.
  4. Click Save.

  Source documentation: Enable a Wiki

Next, you’ll want to adjust the permissions to allow the wiki to be public or private. To configure this follows these steps:

  1. From the repository, click Settings.
  2. Click Wiki.
  3. Click a checkbox to set your Wiki privacy settings or choose No wiki.
  4. Click Save.

  Source documentation: Make a wiki private or public

Once you have this in place you’re ready to start editing and creating your wiki content. Since this process gets more involved I will refer to the documentation to guide you through creating content including your code snippets. Please see Bitbucket cloud Wikis.

I hope this proves helpful and you're able to make your code snippets available via the wiki.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events