I find this web site extremely difficult to use.  How do I add code? I have spent the last two hours trying to post a question, but can't because of some type of editing of code. I have a Spring XML file that contains close to a hundred lines of code. I can't indent the code because it has extended lines.  Is there ANY way I can post without indenting a hundred lines of code? Is there ANY way to override that editing requirement?  I've had to just give up before because it was going to take too long.
4554
How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly &mdash; not escaped or removed &mdash; when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .
6210
Is there a good SE site that is only about refactoring?  I know there are sites like this, but SO has the largest audience of programmers so a section where you can just post a code snippet and people can give advice on refactoring it.
79266
Sometimes we get questions where the problem can't be reproduced given the information OP mentioned. Sometimes we get questions where OP posts code and asks why the code doesn't work where in fact the code does work.   Here is  I just ran into in the edit queue. However, we've all seen them.  In the example  the question basically saying "When using your code in an isolated environment it works. This is not the first or tenth time I've seen these sort of answer.   Should users post these sort of answers? Are they useful for the site? Why?  Note: This is not about whether or not to close such questions. I think that's clear.
49834
Do the SO admins have any plans to release the underlying code for SO at all? I appreciate that the code may be part of their competitive advantage, but it strikes me that the underlying system would work for any topic, not just programming.  I am not advocating this, just curious really, but figured it might be under consideration as most of the value in SO is in the questions and answers, which have been released under a relatively open CC license.
4293
I am aware that comments have only a simple field, with no formatting possible and that is fine (if formatting is needed, your comment should actually be an answer!)  But I find some comments hard to read because they are mainly one giant line (of up to 600 characters!). Any newlines entered during the redaction of the message is stripped from the published comment.    Would it be possible to preserve those newlines? (but may be deleting empty lines, to prevent abuses like a comment taking 600 lines because a prankster could find amusing to post a 600 newlines comment!)    Let's recap:   what we need (and can actually preview while typing a comment, making it more readable, both for the writer -- and the reader, should newlines being kept): declined for newlines (why? no reason given at this time.) what we don't need but is "nice to have" (even though we cannot preview those): granted for bold and italic text. what we really don't need (and cannot not preview): granted for... __code sample__!? Code sample? Seriously? In a comment?   In short: What was an incentive to post a new answer (because of the lack of formatting) is now further diminished. But the comments remain published as one long-hard-to-read-gigantic line.
9736
I've posted a lot to StackOverflow, and I've noticed something kind of irritating with the formatting in writing questions and comments. If I need to put something inside a &lt; and a >, without spaces in the middle (like right there), it will think it's code and not show up, like this   (obviously it won't come up what I wrote there, or else this wouldn't be an issue, but if you open up the question to edit you can see what's written there.)  If I want it to show up, right now I have to add an extra set of brackets inside of the originals with a junk variable, like right &lt;here> (again, open in edit window to see).  This is really annoying when trying to show variables like lists that require those brackets, and I feel like the junk variables could confuse people looking at the edits. Is there a way to get around this formatting? Thanks!
94400
This question was posted using the Android App.  When posting questions using the Android application, tag selection can be a little tricky &amp; error-prone.  The web application provides an autocompletion list of suggestions as you type, but no such list appears in the Android app. It would be very useful if similar functionality could be implemented there.  Also it appears that entering a new tag is friction-free, as might happen when fat fingering a tag. As a demonstration I have tagged this question with a false tag.  It should not be this easy to create a new tag, as I would guess the majority of these cases would be mistakes.
31740
So code blocks in questions and answers on the android app (inline included) seem to be scared of me putting my finger in them. When I poke them, they only move over two columns!  (For clarity, these are the code blocks that overlap the TextArea view because they've been eating too much)  The intended behaviour here is that when I press my finger into a code block, the touch event should register a drag; at current, I try to scroll inside a code block and I end up switching to question or answer view instead, over and over.  EDIT:  Something tells me this is status-bydesign because the text is deliberately cut off (probably inviting you to click on the code block and expand it; UX Decision?):
44836
I would like to be able to post code in chat. I know that I can post inline snippets of code by using backticks, but I don't know how to post blocks of code, with the entire chat message formatted as code, and indentation respected. I am aware of . After reading the comments, I found out that I could format in "fixed width", but I can't see a "fixed width" button anywhere. What should I do?
25798
I posted a question and a couple of respondents asked for the source code. I could only post portions of the code.  If attachments were allowed I could have uploaded a .zip file with the whole application.  Will this be a feature in SO?
92699
Instead of asking a question I would love to share the one or other code snippet I have created that is too small to make a full article on e.g. CodeProject.com or CodePlex.com.  Question: Would it be a good idea to post it as a Stack Overflow question? Or are there any other suggestions how to share it?  (Of course I could post it on my own weblog and then twitter about it, but I would love to put it in more of a programming context)
36185
Please have a look at . When the question was asked by the OP, it had a scope related problem in the code snippet posted in it. 2 answers were posted for that question. But after the answers were posted, a friend of mine from Stack Overflow, edited the question(not sure with what intention) in such a way that the bug in the code was gone(it actually self answered the question). Please have a look at the question revision history, where I've rolled back the question to the original state, which has the problem in place.  My question is that, should such a practice be allowed/encouraged that an edit to a question renders all the answers posted for that question, totally irrelevant? As anybody who comes to have a look at the question later, will be highly confused as to why a question was asked without any problem and there were so many answers posted to it(not everybody cares to go through the revision history)? I happened to notice that, but not everybody would notice it.
25314
In  I tried to add  for syntax formatting to code blocks quoted from the question. However, it seems they won't be honoured if I write them as a comment in my own part of the post, and if I include the hint in the qutotation as well then I have some ugly empty space before the code block. There should be a way to write these things properly.
91651
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 &lt;bad code&gt;) 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...
71415
What is the purpose of annotations in Java? I have this fuzzy idea of them as somewhere in between a comment and actual code. Do they affect the program at run time?  What are their typical usages?  Are they unique to Java? Is there a C++ equivalent?
107355
User posted a link to  in . So I edited it to actually show the image. I didn't remember image syntax used here, so I used GUI button. that was much faster than reading syntax help and I expected it to gave me the same result as manual wrapping URL into image tags. I was surprised to see  as created URL. I replaced new one with old URL and it worked good, too, so reupload wasn't really needed.  It seems each time someone will want to correct broken markup using GUI tools, new copy of image will be created. It's both a waste of time and HDD space. Could you add filter to GUI tools, so that if image is already on stack.imgur.com your tool would not try to upload it again, but would just use the copy available there?  Tested on  and , in this very post.
38266
I just approved several edits from a user adding  to questions with the  tag. Apparently , Google Code Prettify has added support for Dart.  I suggest it's time to follow suit and update the default syntax highlighting associated with the  tag. Adding it manually to every question sounds like way too much work, even if I all I have to do is click the "Approve" button.