# 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:** 5

<div class="post-metadata">

**Author:** ![pgr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pgr/32/156783_2.png) [@pgr](https://meta.discourse.org/u/pgr)\
**Post date:** [December 17, 2019, 1:55pm UTC](https://meta.discourse.org/t/displaying-code-changes-and-comments/136308/5 "2019-12-17T13:55:25Z")

</div>

Hhmm 🤔

So they have that [gist snippet there](https://gist.github.com/choxi/6fa98f7b203bf2dfdcfa), what they’re suggesting is that people implement that _outside_ the highlighter (in that case, it’s `marked.js`, I guess the same could be done with `highlight.js`).

Do you think Discourse could do that? Or, previous question, does this make sense in terms of architecture?

I guess the general idea is just to do some find-and-replace, remove the diff marks, send it to the syntax highlighter, and then work on it with some more find-and-replace afterwards. It sounds very awkward but the truth is that the snippet isn’t _that_ complicated at all.

---

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