Edit them
The snippet feature is of no use to posts where the code isn't meant to run. It only wastes space.
I usually also add a comment along the lines of:
"Please don't use Stack Snippets for code that isn't meant to run on your post."
Of course, make sure you fix everything you can about a post: Fix typos, remove noise, that kind of stuff, when editing out snippets.
Simply put:
Snippets should only be used for JS / HTML / CSS posts where running the code helps in showing the solution / question.
For example:
This answer of mine about generating tables has a snippet to show the code generating a table.
The snippet provides direct visual feedback about what the code does, while it doesn't require any extra code to actually show the answer.
This answer about parsing integers on the other hand, just has some code blocks. If I wanted to use a snippet there, I'd have to add a bunch of HTML and JS that really isn't relevant to the problem in the question.
In the question you linked, the difference in post length compared to the added value of the snippets (none) only illustrates to show why edits like that should be made: