Select text between specified line numbers

Discussion Forums discussion Select text between specified line numbers

This topic contains 0 voices and has 2 replies.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
February 16, 2011 at 7:58 am #5204

mexmanz
Member

Hi,

Is there a function to select text between two specified line numbers:

for example, if the file has 100 lines and I want to select the text between and including lines 25-50 using a keyboard shortcut.

How can this be done, or if lines are bookmarked, can the text be selected between the two bookmarks.

Many thanks for advice

Andrew

February 16, 2011 at 8:18 pm #17625

Nux
Member

You could do that with a script. You could base it on a recoded script.

To open prompt run:

strLines = pn.InputBox("Select script", "Type in line numbers to be selected")

To select a range of text use:

sct.GetTextRange(min(arrSel),max(arrSel))

Where sct is:

sct = scintilla.Scintilla(pn.CurrentDoc())

April 15, 2011 at 9:24 pm #17626

CoDEmanX
Member

Would be nice to have such functionality built-in. If pn ever gets hex edit support, a generic select range dialog would be great (similar to what HxD has but also for text)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.