Home Download Buy Blog Forum Support

question about word wrapping

question about word wrapping

Postby yestalk on Fri Mar 02, 2012 3:35 pm

i am new to sublime text2 , could you tell me that is there any way to wrap line(as praragraph) like this way below(thanks very much):

"----" as <tab> indentation

(line 001)text text text text text text text text text 80
(the line been wrapped)text text text text text text 80
(the line been wrapped)text text text text text text 80
(the line been wrapped)text text text text text text 80
(the line been wrapped)text text text text(one line end)
----(line 002)text text text text text text text text text 80
----(the line been wrapped)text text text text text text 80
----(the line been wrapped)text text text text text text 80
----(the line been wrapped)text text text text text text 80
----(the line been wrapped)text text text text(one line end)
--------(line 003)text text text text text text text text text 80
--------(the line been wrapped)text text text text text text 80
--------(the line been wrapped)text text text text text text 80
--------(the line been wrapped)text text text text text text 80
--------(the line been wrapped)text text text text(one line end)
------------(line 004)text text text text text text text text text 80
------------(the line been wrapped)text text text text text text 80
------------(the line been wrapped)text text text text text text 80
------------(the line been wrapped)text text text text text text 80
------------(the line been wrapped)text text text text text text 80
------------(the line been wrapped)text text text text(one line end)
----------------(line 005)text text text text text text text text text 80
----------------(the line been wrapped)text text text text text text 80
----------------(the line been wrapped)text text text text text text 80
----------------(the line been wrapped)text text text text text text 80
----------------(the line been wrapped)text text text text text text 80
----------------(the line been wrapped)text text text text(one line end)
--------------------(line 006)text text text text text text text text text 80
--------------------(the line been wrapped)text text text text text text 80
--------------------(the line been wrapped)text text text text text text 80
--------------------(the line been wrapped)text text text text text text 80
--------------------(the line been wrapped)text text text text text text 80
--------------------(the line been wrapped)text text text text(one line end)
Last edited by yestalk on Fri Mar 02, 2012 4:34 pm, edited 2 times in total.
yestalk
 
Posts: 6
Joined: Thu Mar 01, 2012 5:52 pm

Re: question about word wrapping

Postby bizoo on Fri Mar 02, 2012 3:47 pm

Sorry, it's probably due to my limited knowledge of English, but I didn't understand your question.
Could you please give us an explication, not only an example ?
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: question about word wrapping

Postby iamntz on Fri Mar 02, 2012 3:53 pm

I guess he wants word wrap to be done at column 80, related to the current indent, not from column 0.

Yestalk: please add few more threads. Two with the same content is not enough....
iamntz
 
Posts: 915
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: question about word wrapping

Postby yestalk on Fri Mar 02, 2012 4:26 pm

yes, buddy-upstairs, you have refined exactly what i meant: wrap each line(one line as one paragraph) in n characters relatively to the <tab>indent(not 4 spaces), is there any way to do so?
yestalk
 
Posts: 6
Joined: Thu Mar 01, 2012 5:52 pm

Re: question about word wrapping

Postby agibsonsw on Fri Mar 02, 2012 10:07 pm

I believe it would/may be possible to do this with a shortcut key that runs a TextCommand, but not with a simple word-wrap setting.

The Edit menu, Wrap command allows us to wrap different paragraphs at different column numbers. Presumably, these menu options run a Command, but we/you need to find the name of this command firstly.

But, on second thoughts, is word-wrapping really appropriate for this? Having tabs at the beginning of each line seems to contradict the purpose of word-wrapping :?:
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: question about word wrapping

Postby yestalk on Sat Mar 03, 2012 3:16 am

it is not what i meant -----"the editMenu--->wrap".

what i mean is, wrap a line visually(it well be still a line),not physically by adding "\r\n".

their could be two purpose that make you feel missing the piont which i think is important:

1.the view-wrap has the purpose of visual convenient.

2.the <tab>indent make the doc have structure between lines(paragraphs), what does those structure mean depend on others(app,person,definition)how to interpret it.
yestalk
 
Posts: 6
Joined: Thu Mar 01, 2012 5:52 pm

Re: question about word wrapping

Postby yestalk on Sun Mar 04, 2012 4:51 am

please,don't sink.
yestalk
 
Posts: 6
Joined: Thu Mar 01, 2012 5:52 pm


Return to General Discussion

Who is online

Users browsing this forum: Clams, Majestic-12 [Bot], vitaLee and 23 guests