# Displaying code changes and comments

**URL:** <https://meta.discourse.org/t/displaying-code-changes-and-comments/136308>\
**Category:** Feature\
**Created:** [December 17, 2019, 1:07pm UTC](https://meta.discourse.org/t/displaying-code-changes-and-comments/136308 "2019-12-17T13:07:37Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [December 17, 2019, 7:30pm UTC](https://meta.discourse.org/t/displaying-code-changes-and-comments/136308/8 "2019-12-17T19:30:47Z")

</div>

Type out the code block like this:

````plaintext
```diff
A normal line
- removed line
+ added line
```
````

Specifying `diff` as the syntax means that you can use `+` and `-` at the beginning of lines to highlight them green and red.

---

_[View the full topic](https://meta.discourse.org/t/displaying-code-changes-and-comments/136308)._
