The problem you're trying to solve is one in which someone might come along and "change the syntax". I'm not sure what this means.
- Is it the case that a change to the actual semantics of the code will break the actual code or question?
- Do you not want anyone to change the variable names?
- Do you just not want anyone to come along and format it?
Bullets 1 and 2 can be dealt with by rolling back the edit. Edits that change the semantics of a question or change variable names add nothing to the question (and may actually wind up harming it), so rolling those back is part and parcel of what we do.
Bullet 3 is...well, that's fine. If formatting of your question makes it easier for others to read, that's something to be welcomed, not rejected.
Stack Overflow encourages the editing of questions and answers in an effort to make their presentation cleaner. If the question suddenly becomes a different question we can deal with that, but by and large, edits to questions are innocuous and more beneficial to the OP and overall question.