 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
|
 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())
|
 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)
|