Syntax highlighting for tags can be specified by
Navigating to the tags page
Searching for a tag, hovering over it with the mouse to raise a pop-up, and selecting "info".
Choosing an appropriate code (such as "lang-py") from the "Code Language" prompt.
Only moderators can make such changes, so I have just made them for all the "py"-related tags that are ...
List of tags with syntax highlighting applied (after the question was posted):
default: gdal, json, geojson, topojson (these do not have a more specific language syntax highlighting option available)
I think this is a hard call.
Unless the edit queue needs to be invoked, I think anything that makes a question easier to read warrants an edit.
When the edit queue is required, then I think an edit should be just a little more substantial than the one in your picture.
As much as possible our Q&As are intended to be timeless, so I don't think their ...