Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 155 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Earlier when I wanted to paste several lines of source code or table as the code sample, I used to manually insert spaces before every line (or paste several spaces to the first of line) to indent it.

Jim proposed a better approach below: First to paste the code, then highlight it and mark it as the code sample.

But isn't it better that if we have already started a code sample area, the site itself supports copy-paste and automatically indents the pasted lines?

share|improve this question
Paste it, highlight it, and click the {} button to turn it to code. Or Ctrl+K. – yoozer8 Oct 9 '12 at 15:09
@Jim :-) Nice trivial idea, thanks! – Ali Sharifi Oct 9 '12 at 15:12
In its current form, this requests is dupe of this one – Shadow Wizard Oct 9 '12 at 15:32
@ShaWizDowArd I don't think so, I am not talking about increase/decrease button, but just Automatic indenting the pasted lines while already started a code sample area. – Ali Sharifi Oct 9 '12 at 15:37

You must log in to answer this question.

Browse other questions tagged .