It'd be helpful if you could provide a code snippet that clearly shows the issues. Make it the smallest snippet that exhibits the problem and be sure to use UBB code tags to preserve formatting (read this for more information).
With regards to editing, your subject line was probably adjusted. I usually do this when it's excessively long, contains all uppercase, isn't clear or on topic, or has excessive punctuation.
You might also want to include the text snippet you're trying to display.
Other than our naming policy and our most important rule (Be Nice) there really aren't any rules that you could have broken. I may have been that the moderator who edited your post saw a way to tweak your question to improve its chances of being answered.