Let's say I put a code block in a post like so:
def Main():
print(hello
if __name__ == '__main__':
Main()
Oh, whoops, a typo! I forgot the parenthesis after "hello" on line 2. Or sometimes I realize I didn't word a comment clearly enough, or I forgot to include some piece of code.
But I can't edit a code block once it's embedded. I have to select it, delete it, and start again.
Sure, I can do copy/paste with the code in the code block to speed the process slightly, but it's still a pain. Why not allow users to hit an edit button on that code block and pull that dialog back up to make their changes?