Can you have code highlight alongside diff?

When having PRs do you always have those diffs displayed that also keep code highlighting active.

My question now is, if you can somehow reproduce this using code blocks themself.
I would like to display some YAML code with a diff add-highlight to indicate a setting that should be added.

If this isn’t doable would it be nice if GitHub could consider this (If requested could I open a feedback about it).