The best solution that I know of: Edit and correct the question, and then leave a comment. I sometimes use a comment like this one:
Programming is an exercise in precision since the Java compiler and JVM are strict and non-forgiving, so when asking a programming question, you will want your communication to be as clear as possible to avoid any chance for ambiguity. Also, for many here English is not their first language, and it may be hard for them to understand posts especially if they contain obscure and non-standard abbreviations. I'd say more than half the comments on this site are requests for clarification. Let's avoid these.
If you're looking for an automatic software-based solution, yes I can see potential problems. For example if someone is showing a variable i
as text (not knowing about the inline code functionality) or using it as some sort of outline heading index, then the site's software could potentially mangle it, and so I don't think that it can be always done automatically. But for me i is the minor issue, and the other issues of misuse of grammar/spelling/usage are much more egregious, especially the over-use of improper abbreviations.
Also please look at this similar question: Automatically capitalize i.