View unanswered posts | View active topics


Reply to topic  [ 6 posts ] 
Bad snippet formatting 
Author Message
Member

Joined: Mon Jul 09, 2012 12:39 pm
Posts: 9
Post Bad snippet formatting
Hello.

Snippet code:
Code:
//{ import region
$(SelText)
//} end import region


Please look how it works.


--- With formatted text ---

1. Before.
Image
2. Selected lines. Please see at current padding. And also at caret position.
Image
3. Look at broken formatting. Also look at new caret position.
Image


--- With not-formatted text ---

1. Before.
Image
2. Selected lines. Please see at current padding. And also at caret position.
Image
3. Look at no changed formatting. Also look at new caret position.
Image

Thanks.


Wed Jul 25, 2012 6:21 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10746
Location: Paris, France
Post Re: Bad snippet formatting
Snippet's first line inherits indentation from the selection's start columnь so if you select "var ..." it will be correctly indented.


Sun Jul 29, 2012 7:11 am
Profile WWW
Member

Joined: Mon Jul 09, 2012 12:39 pm
Posts: 9
Post Re: Bad snippet formatting
Philippe wrote:
Snippet's first line inherits indentation from the selection's start columnь so if you select "var ..." it will be correctly indented.

No. In that case only first line will be ok. Other lines will be as on screenshots.


Sun Jul 29, 2012 8:19 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10746
Location: Paris, France
Post Re: Bad snippet formatting
Ah I didn't look carefully :) ok something's wrong here.


Sun Jul 29, 2012 9:56 pm
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10746
Location: Paris, France
Post Re: Bad snippet formatting
Fixed in SVN.


Tue Jul 31, 2012 6:57 pm
Profile WWW
Member

Joined: Mon Jul 09, 2012 12:39 pm
Posts: 9
Post Re: Bad snippet formatting
Good job. Now it works fine :)


Tue Aug 07, 2012 3:54 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.