Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Info

If you're looking for the Snippets for Confluence documentation, it can be found here.

The Snippets plugin provides a simple way to create and share code snippets in Bitbucket Server. The plugin allows you to create code snippets and optionally make them available to other users. You can also discover snippets created by other users and add them to your starred snippets collection.

...

  • Store your code snippets in Bitbucket Server

  • Share your code snippets with other users

  • Discover snippets created by other users

  • Star snippets to add them to your own starred snippets collection

  • Simply embed snippets on any website or in Confluence by using our free Snippets for Confluence add-on

Screenshots

...

How it works

Creating and Editing Snippets

Access your snippets by using the snippets menu in the header of Bitbucket. You can create new snippets directly from the menu or by clicking the create button in the snippets overview. Specify a name and an optional description, which supports Markdown syntax. You can categorize your snippet by assigning one or more categories. Enter new categories separated by commas. You can also control the visibility and accessibility of your snippet:

...

Markdown files are being rendered directly when viewing a snippet, if the file name has one of the following extensions: .md, .markdown, .mdown, .mkdn or .mkd. Learn more about the supported syntax in the Markdown Syntax Guide.

Sharing Snippets

After you have created your snippet, you can share it with other users by copying the snippet link displayed in the right sidebar of the snippet. Once other users know the URL of your snippet, they can share it as well, add a comment or star it for later use. By starring a snippet, the snippet will be available in your own starred snippets collection. You can also download a snippet with all files as a zip file or view the raw file directly in your browser.

...

Finally you can discover more snippets of other users in the browse snippets “Browse Snippets” section or on the user's profile page.

...