# Diff macro 📝 Compare differences between two pieces of text or code on your Confluence pages using the Diff Macro. | **Description** | Compare two pieces of text side-by-side. | | --------------- | ---------------------------------------- | | **Type** | Standard | | **Guest** | :check\_mark: | | **Anonymous** | 🕙 | The Diff Macro in Capable for Confluence is a powerful tool that allows you to compare two pieces of text or code side-by-side, highlighting the differences between them. This feature is incredibly useful for teams that need to review changes in code, documents, or any other text-based content. By visually displaying the differences, the Diff Macro makes it easier to spot changes, review edits, and ensure accuracy in collaborative environments: * **Bug Retrospectives**: Imagine your team has just resolved a bug in the codebase. Using the Diff Macro, you can compare the pre- and post-fix versions of the code to pinpoint what caused the issue and how it was fixed. * **Documentation Updates**: When updating documentation, the Diff Macro allows you to compare the old and new versions side-by-side. * **Project Revisions**: If a project involves multiple rounds of revisions, the Diff Macro can help track changes over time, providing a clear view of how the content has evolved. ![Diff macro in Confluence](https://help.gocapable.com/images/8c21d8d2-057d-4e88-89de-85c86ef9f2a0.webp) ## [#](#1-open-the-confluence-editor)1\. Open the Confluence editor ## [#](#2-type-diff-and-press-enter)2\. Type `/diff` and press Enter ![Insert Diff macro in Confluence](https://help.gocapable.com/images/ae82ae36-7d2f-4dee-a5ff-abd513220239.webp) ## [#](#3-configure-the-text-or-code-to-compare)3\. Configure the text or code to compare ![Configure Diff macro in Confluence](https://help.gocapable.com/images/8dfe997e-b4d3-4b80-9f9c-4ca0e3346366.webp) ## [#](#4-save-the-page-to-share)4\. Save the page to share ![Diff macro in Confluence](https://help.gocapable.com/images/87283ffb-65a4-4fa3-a377-a77de8d604ea.webp)