When editing a SO question or answer, a prominent {}
button allows beginners to discover the possibility of formatting text as code. When some lines are selected, these lines are instantly formatted as code. When no lines are selected, placeholder text “enter code here” is inserted to make it clear where the code has to go.
However, inexperienced users may leave the “enter code here” placeholder text in their question, attracting negative comments for something that is not their fault but a usability bug.
While the placeholder text clearly helps understand the role of the {}
button, the editor should check that this placeholder text, when automatically inserted, has been edited out before the question is posted.
The worst possible side-effect might be difficulty to post code that contains exactly the words “enter code here” when the user has clicked {}
with no selection. This seems at first sight less likely than the error of forgetting to remove the placeholder.
(Or the placeholder text could remove itself more automatically, but that is so obvious that I assume it would already be done if it was easy.)