Feature Request - Column Highlighting

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by painetraine
Avatar
I have a feature request for a future build of SyntaxEditor that others might find useful as well.

In Visual Studio, if you hold down the Alt button and then begin selecting text, you can actually select columns of text and not whole lines. I don't know how hard this would be but it would be a useful feature and would make SE conform more towards the Visual Studio editor (which many people using SE are probably trying to do anyway)

Thanks

Comments (4)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks for the suggestion. We do already have that on the TODO list. What sort of object model changes/enhancements do you think we'd need to implement to handle that since the Selection object currently is only designed for normal text selection?


Actipro Software Support

Posted 19 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
Avatar
This is a feature I've been hoping for as well. <IMG SRC="biggrin.gif" border="0">

You could possibly treat the column-based selection as a collection of normal selections since all the standard properties/methods of a selection should still apply to a single line within the column-based selection.
Posted 19 years ago by painetraine
Avatar
I think you could add maybe a few fields to the Selection object to handle it:

SelectionType : Standard | Column
Rows : int

Then, if the user performs a standard selection, StartOffset and EndOffset would be expected values and SelectionType would be Standard and Rows would be 0

If user did column selection, then StartOffSet would be basically the first column on first row, EndOffset would be last column on first row and then rows would indicates how many lines/rows to copy that substring for.

Then to get selection you could either provide a method or user could get selection by takin substring of current row and substring of subsequent rows up to StartRow + Row or something.

Getting the text is the easy part I think. I think the hard part will be doing the selection around the text since you have to handle proportional and nonproportional fields although I just checked and VS simply staggers the columns to match column positions in non-prop fonts.

Thanks
Posted 19 years ago by NSXDavid
Avatar
Back in the day.... we developed our own programmer's editor for the Amiga (ahhh, the Amiga). One cool thng was that we supported arbitrary span marking, "column" marking and even disjointed marking for selection. Disjoined line selection was actually very useful in day to day editing tasks. I haven't seen that sort of thing in modern editors... though I haven't looked at them all.

-- David
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.