Questions tagged [indentation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
59 votes
3 answers

Alignment issue for the last modified information in the "Top Questions" page

In the Top Questions page (homepage), the asked/modified X mins ago text was left-aligned next to the tags. Previously the text was right-aligned. Seems some alignment issue introduced on that page ...
Arulkumar's user avatar
  • 38.2k
2 votes
0 answers

What's wrong in this answer? [duplicate]

This is a screenshot of an answer I cannot post. Preview output is okay, the text is okay, I only have one line of a command, anything else. UPDATE 1: The problem is with the bottom links. How ...
dstonek's user avatar
  • 137
9 votes
2 answers

Make markdown respect a double newline as end of list formatting

I was writing a question in which I used a list to indicate the steps my code takes, immediately followed by the code. Like this: Foo the bar bar the foo Foo = bar / 12 bar = 6 / Foo Albeit being ...
Luuklag's user avatar
  • 36k
0 votes
0 answers

When you indent an image in a list, it overhangs [duplicate]

As you can see, the image is overhanging the edge of the box. This is also easy to see in editing and creating: Here you can see that the dotted lines are blocked by the image going over it.
Tim's user avatar
  • 21.2k
49 votes
2 answers

Make Ctrl+K indent entire lines even when the first and last are only partially highlighted

When we select text for indenting, e.g. and Ctrl+k, we get this: I don't think our target audience is accustomed to this behavior, although I could be wrong. The following programs indent entire ...
Andrew Cheong's user avatar
3 votes
1 answer

Should the formatting style be mimicked when editing posts? [duplicate]

Sometimes I see code like this on Stackoverflow: int main() { if(true){ return 0; } else{ return 1; } while(true){return -1;} } I will usually suggest this edit: int main() { if(true){ ...
FalconC's user avatar
  • 763
0 votes
1 answer

Code indentation not working for that answer, neither tabs nor spaces

I've posted that answer: and I was fighting a bit with indentation. No matter what I've set, spaces or tabs, there is no indentation displayed. Both ...
Web Devie's user avatar
  • 379
37 votes
2 answers

How to add empty new line in block quote?

Not sure if this is a duplicate. I can have the following in a block quote: Case 1 00:23 00:54 Case 2 00:21 00:51 But this makes it look clumsy. I want the following ...
nawfal's user avatar
  • 1,451
14 votes
3 answers

How to easily unindent a block of code?

When editing a post, sometimes the code block has been indented too far and it forces a horizontal scrollbar unnecessarily. Is there a quick way to correct this type of indentation or do I still have ...
user avatar
-8 votes
2 answers

Should Stack Exchange switch to ACE Editor?

There is an Open Source code editor called ACE. It is used in Github gist right now. One feature they have that I love is box shaped text selection. (Alt+Click drag to use) This is hyper-useful ...
bobobobo's user avatar
  • 13.7k
3 votes
2 answers

Add 4 spaces in the middle of the code

I know that if I press ctrl + k I automatically can add 4 spaces, but what if the code has already 4 spaces and I need to add 4 spaces more to it? If I press tab in the SO editor it just gets me ...
Ramy Al Zuhouri's user avatar
4 votes
2 answers

Code button no longer unindenting like it used to?

As well as slightly different images for the vote counts on question the SO questions pages, the code button in the question editing doesn't seem to be unindenting like it used to do. Is it just me, ...
Jonathan Leffler's user avatar
1 vote
0 answers

Code indenting just appears to be broken here [duplicate]

Possible Duplicate: Code blocks don’t show leading spaces in IE 9 (and 10) I was trying to edit this person's post. All the spacing is there but it is ignoring all my spaces and indenting. Try ...
CashCow's user avatar
  • 345
53 votes
3 answers

Auto indentation in code editor

When writing code in the question/answer editor's code block I believe that it would be extremely useful if we could have the code auto indented instead of being forced to hit space bar multiple times....
Avada Kedavra's user avatar
7 votes
1 answer

Un-indenting code when copy-and-pasting from an external editor

Sometimes, when I copy and paste code from my editor to the question box, the indent level is too much; I think there should be buttons to move the indent level left or right without having to ...
user152642's user avatar
-1 votes
1 answer

Check for the indentation code control

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 ...
Filippo1980's user avatar
1 vote
0 answers

Start new lines of code block with same indent as previous line [duplicate]

Possible Duplicates: Automatic code reindent button AutoIndent of Source Code I realize that you can already indent code blocks with the 'code sample' button or ctrl+K, but that's something you ...
Veger's user avatar
  • 1,573
4 votes
2 answers

Can't post question due to code formatting checker

I've tried indenting everything, except for syntax highlighting which I was going to edit after my post it's "blocking" the code correctly, but the code formatting checker keeps rejecting it. What am ...
user650261's user avatar
-5 votes
2 answers

I can't post my question because of the "indentation"! How do I fix this?

I entered over 100 lines of code for my question, and then pressed "Submit" on Stack Overflow. The website gave me an error, saying that my code was formatted wrong. It suggested that I use the Ctrl+K ...
千里ちゃん's user avatar
7 votes
1 answer

Changing code indentation levels automatically or manually [duplicate]

Possible Duplicate: Add increase/decrease tab indent buttons to the editor toolbar If you have some code which is heavy nested and you just copy some of the inner code you end up with a lot of ...
H.B.'s user avatar
  • 2,476
36 votes
4 answers

Easy way to mark text as code by indenting it [duplicate]

I was wondering if there is an easy way to indent the code in Stack Overflow. Whenever I paste in code, all the code loses its indentation; what I have been doing is manually indenting every line with ...
user avatar
5 votes
0 answers

Make multi-line code indent work with sloppy selections in the editor

This is only a minor annoyance, but one at least I often run into. Would it be possible to make the "indent code" button (or Ctrl+K) always indent entire lines when there's a multi-line selection? It ...
Matti Virkkunen's user avatar
-4 votes
1 answer

Code should be automatically indented when being written

Most of the time, I paste example code into my questions/answers, but for very short snippets I also type it directly into the field in the browser. For those times, it would be really nice to have a ...
Jean-Philippe Pellet's user avatar
1 vote
1 answer

Provide a warning for incomplete indentation when they miss it by that much

Would you believe that someone indented their code with three spaces, and got an error message letting them know that it won't work? Find that hard to believe? Ok, would you believe they got a tool-...
Andrew Grimm's user avatar
  • 21.1k