Paste with Indentation

Revision as of 18:20, 26 April 2012 by Ted (Talk | contribs) (New page: Category:Editor =Description= This article describes a new pasting behavior which is smarter than the regular paste-as-it-is behavior in terms of indentation. However the implementati...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This article describes a new pasting behavior which is smarter than the regular paste-as-it-is behavior in terms of indentation. However the implementation will remain simple without using heavy Eiffel parser to reformat the text being pasted.

Behaviors

Behavior 1: Multiple lines with leading tabs in pasting text

Copied text:

Behavior 1.1

Pasted at: Result: Comment:

Behavior 1.2

Pasted at: Result: Comment:

Behavior 1.3

Pasted at: Result: Comment:

Behavior 2: Multiple lines with no tab in pasting text

Copied text:

Behavior 2.1

Pasted at: Result: Comment:

Behavior 2.2

Pasted at: Result: Comment:

Behavior 3: Single line with leading tabs in pasting text

Copied text:

Behavior 3.1

Pasted at: Result: Comment:

Behavior 3.2

Pasted at: Result: Comment:

Behavior 3.3

Pasted at: Result: Comment:

Behavior 4

Copied text:

Behavior 4.1

Pasted at: Result: Comment: