Hello.
Snippet code:
Code:
//{ import region
$(SelText)
//} end import region
Please look how it works.
--- With formatted text ---1. Before.

2. Selected lines. Please see at current padding. And also at caret position.

3. Look at
broken formatting. Also look at new caret position.
--- With not-formatted text ---1. Before.

2. Selected lines. Please see at current padding. And also at caret position.

3. Look at
no changed formatting. Also look at new caret position.

Thanks.