Would it be possible to add an option to the edit control (used to write questions/answers) to indent the line by 4 spaces. I find myself using 4-space indentation quite often to format the code and counting spaces all the time is a bit tedious.  I would like this to work any number of times, ie. you would press the button twice to get 8 spaces, 3 times to get 12, etc.  It would be also good to have the reverse option of moving the indentation to the left by 4 spaces.  I know that any form of automated formatting was already discussed and is hard to do but that feature would at least allow some quicker editing.  I hope this is not a duplicate, I tried to search for previous questions but couldn't find anything.
93586
These should work by adding spaces or removing spaces from the beginning of the current line or every line between the start and end of a text selection (inclusive).  (edited this question to supplement )
77610
Possible Duplicate:          Occasionally I come accross a post like , where    the lack of code formatting is a significant problem the post is so deliberately simple that further changes disrespect the original author's intent.     How should I attempt to improve such posts, given the 6 non-space character limitation?  Submit an overzealous edit and assume it will be pared down if necessary?  Give up and come back when I hit 2k?
11322
On Stack Overflow, there was a question with an incorrectly formatted list, which lacked a newline before it and thus came out like this: 1. Hello 2. Something else 3. Goodbye  I changed it to the right formatting by inserting a newline:   Hello Something else Goodbye   And I got the "Edits must be at least 6 characters" error message. Is there an OK way to trick this rule?
58280
I'm trying to center a fixed size control within a form.  Out of interest, is there a non-idiotic way of doing this? What I really want is something analogous to the text-align css property.  At the moment, I'm setting the padding property of the surrounding form to a suitable size and setting the Dock property of the control to fill.
37928
I was trying to put a small line of code in a comment, but I noticed that the multiple spaces in the comment enclosed in backticks(`) were replaced with single ones.  To make it clear, I wrote this as raw data in the comment:  replace("       ", " ")   Note: ^ This is code indented with four spaces    And when I added the comment, it was appearing as this:        The  says:  _italic_ and **bold** text, inline `code in backticks`, and [basic links](http://example.com).   But when the multiple spaces are replaced with single ones, then perhaps, it won't help for code.
35886
Code is supposed to be exact and "as-is". Sometimes, showing two spaces is important. In a comment, it is not possible to show code with  multiple   spaces. This became apparent in  (see comments).  EDIT: apparently this bug is larger then I thought: multiple    spaces   here are neither preserved in normal question text. Pity (though I couldn't find this reported before, I'd assume it is).  Workaround: use Alt+0160 (windows), or U+00A0 (Unicode NBSP), as I did in the example above.
88341
I want to use a table in my answer. e.g  |-------------|----------------| | ShortCut    | Description    | |-------------|----------------|  I have posted an answer , which requires this kind of formatting.   Is it possible to have such formatting in stackoverflow Questions &amp; answers ?    If yes, How ? If no, why ?   Edit : I tried to use following code directly in editor of SO. But it didn't work for me.  &lt;table&gt; &lt;tr&gt; &lt;td&gt;hello&lt;/td&gt; &lt;td&gt;hello2&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;hello3&lt;/td&gt; &lt;td&gt;hello4&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;
102730
I can manually try and indent, but it only works on the first 'paragraph' within the cell, and the \hspace won't even work with the second paragraph. Is there an easier way?  \ctable[     cap= A short caption,     caption= This is a longer caption,     ]{lp{2in}p{2in}}{}{\FL     title1 &amp; title2 &amp; title3\ML     label &amp;     \hspace{1em} This is paragraph one.  This is paragraph one.\newline     \hspace{1em} This is paragraph two.  This is paragraph two.&amp;     \hspace{1em} This is paragraph one.  This is paragraph one.\newline     \hspace{1em} This is paragraph two.  This is paragraph two.\NN     label2 &amp;     \hspace{1em} This is paragraph one.  This is paragraph one.\newline     \hspace{1em} This is paragraph two.  This is paragraph two.&amp;     \hspace{1em} This is paragraph one.  This is paragraph one.\newline     \hspace{1em} This is paragraph two.  This is paragraph two.\LL     }   As an alternative, I might try simulating a table with minipages, but after briefly trying that, it seems like this should be e
89710
How can I control the vertical space before an environment, e.g., tabular or minipage?   Here is an example that reproduces my problem:   \documentclass{article} \begin{document}     \noindent TEXT-A\vspace{5pt}\\   TEXT-B\\TEXT-C     \\[2em]     \noindent TEXT-D\vspace{5pt}\\   \begin{tabular}{@{}l}TEXT-E\\TEXT-F \end{tabular} \end{document}   The spacing between TEXT-A and TEXT-B is different from the spacing between TEXT-D and TEXT-E:    I have learned so far that the space between TEXT-D and TEXT-E is normal if I delete \\TEXT-F:    Any help would be appreciated!
44258
I am looking for a way to add some string to the beginning of every line (same string for every line). Not something customizable but rather something that will be easy to remember and available on every POSIX-compliant platform (and every shell as well).
114397
I am typesetting an entire math lecture script, where readability often requires me to indent just a line or two for a certain amount, which is ALWAYS different. I would like to have some way of controlling the indent of the next line by an &amp; like in tables, or any other control character. I do not want to use tables though, I want it to look like normal text. It obviously has to work inside and outside of math environments, since they appear in text quite often for this project.  It should look something like this:  This is the first line.      One more line.               And another.   With the control charcters being in front of "is" and "line".  Is there an easy-to-use solution? I don't care if it is complicated to configure once, as long as the use is simple every time.
28759
Does someone know how to indent the text within captionof?  I have a long caption that I want to make two paragraphs out of but indent does not seem to work.  \documentclass{article}  \usepackage{caption} \usepackage[demo]{graphicx}  % make demo figure \makeatletter   \AtBeginDocument{%     \def\Ginclude@graphics#1{%       \begingroup\fboxsep=-\fboxrule       \fbox{\rule{\@ifundefined{Gin@@ewidth}{150pt}{\Gin@@ewidth}}{0pt}%         \rule{0pt}{\@ifundefined{Gin@@eheight}{100pt}{\Gin@@eheight}}}\endgroup}} \makeatother  \begin{document}  \noindent \begin{minipage}[c]{\linewidth} \centering \includegraphics{} \captionof{figure}{\textbf{Title} \newline \indent Paragraph 1 is found here with a lot of text lot of text lot of text lot of text lot of text lot of text \newline \indent Paragraph 2 is found here with a lot of text lot of text lot of text lot of text lot of text lot of text} \label{fig:angio} \end{minipage}  \end{document}
92806
I see on Stack Overflow and  that the recommendation is to use spaces only for indentation in Python programs.  I can understand the need for consistent indentation and I have felt that pain.  Is there an underlying reason for spaces to be preferred?  I would have thought that tabs were far easier to work with.
77467
Related:       Note that this question, while related, is not the same as the ones linked.  In many cases, when people put code into questions or answers, they copy/paste the code from their editor.  If their editor is using tab characters, the formatting will be broken after the post is submitted.  For example, if a code is indented using TAB characters, then one TAB character in the beginning of a line will be treated as one level of indent and align with the left edge of the code, effectively indenting equally to 4 spaces.  However in the post editor it looks indented twice - the same as 8 spaces.  I often edit other people's posts to improve code formatting and I find this TAB issue being the biggest annoyance.  Most of the times (I think) on SO, we use 4 spaces to format/indent the code.  I think it would be an easy thing to auto-expand TAB characters inside &lt;code&gt; blocks by replacing them with 4 spaces when the post is submitted.
81423
I just edited someone's post so that it would be more readable.  Basically, I just added some line breaks and spaces into their sql code so that it now takes a reader about 5 seconds to comprehend what the query is doing instead of 50.  It was rejected on the basis that the edit was too minor.  I respect that decision in that if there's a rule that minor edits should be rejected then they were following that rule.  I am just curious to know why that is a hard rule.  Is it just to prevent having too many edits?
15260
I want to make emacs insert either 4 spaces or a tab when I press the tab key. Nothing else. I don't want smart indentation, I don't want it to auto-align itself or try to do anything smart. I just want it to output 4 spaces (or a tab). =
11961
When using some other editors, when you type two spaces with your space bar, two spaces are effectively displayed. This is not the case in LaTeX (btw, that's not the case on these websites ;) ).  My question is barely simple I guess, but I didn't found some information about it on Google.  How to display two consecutive spaces in LaTeX (I mean two spaces horizontally, with the space bar).