I know that it isn't a new question (I read already some others questions) but:
- the question was asked many months ago;
- my problem, perhaps, is a little different!
Well, as I wrote in the previous message I'm blind and when I try to insert a question I have many problems with correctly indenting my code! I try the shortcut ctrl+K but it add the first 4 spaces and nothing else! If I try to indent this code, for example:
String buf; if(buf!=null) buf="buf isn't null"; else buf="buf is null";
If I selected all rows and press ctrl+K all rows are shifted to right by 4 spaces and the check returns an error because the rows 3 and 5 aren't indentent correctly and now there is the problem... if I select lines 3 and 5 and press ctrl+K again, the editor deletes the 4 spaces!
My question is: why don't you implement an HTML tag (something like
<bad code>) that skips the control and, the negative thing, add a "bad reputation" to the author?
I don't ask a workaround, but I can't lose 3 hours (yesterday I lost this time) for a question that already I can't post because the code is blocked!
Another suggestion: could we be to able ask a moderator to add that bad reputation if he/she see the author never indent his/her code or remove the "bad reputation" if he/she see the author try to indent the code but it isn't indent perfectly!
What do you think about it?
P.S.: This post is caused by the frustration that I have because from yesterday to today I can't insert a question on stack overflow because my code isn't indented correctly... If you should see how many times I try to fix it tou could understand my frustration!
P.S.2: can you implement the tag title on your toolbar icon? It could help me to use it.
@Hammar: ok, I write here what I think should be the correct code: String buf; if(buf!=null) buf="buf is not null"; else buf="buf is null"; ...
There are some errors to this code?
Ok, now I understand that the error wasn't where I thought (or better it COULD be in another place) so my new suggestion is: why don't you create a function that insert a tag for delimited where is the error? I not that you already change the post (for example deleting the initial phrase: "Hello all,") but i don't know how you do the check so I don't know if it is possible!
Ok, now I inset the question that caused this post and my frustration, the question is this:
and I resolve the check adding 4 space around all "suspected" code and adding some empty line... Tell me if it is better change the title for only the last suggestion or is better keep all things for, in the future, understand why and what I asked...