[wingide-users] Line highlighting
support at wingware.com
Tue Aug 5 13:22:32 MDT 2008
Ron.Pastore at VerizonWireless.com wrote:
> Hey Guys,
> Does anyone know if there is a way to highlight a line within the editor
> without using a macro?
Entering Line selection mode in the edit menu under Selection Mode selects
the current line. I'm not sure if that's what you're looking for.
You can open a file to a line by specifying filename:lineno on the command
line, for example:
You can also Goto Line in the Edit menu, although neither that nor the
filename:lineno command line trick highlight the line, they just place
the cursor at the start of it.
If you did want a command that takes a line number and goes to the line
and selects it, you could do this with the following script:
ed = wingapi.gApplication.GetActiveEditor()
ed.fEditor._ExecuteNamedAction('goto-line', int(lineno)-1, 1, 'slop', 'same')
Then bind goto-line-select to a key binding in the Keyboard / Custom Key
Hope that helps.
Wingware | Python IDE
Advancing Software Development
More information about the wingide-users