News:

Download Pelles C here: http://www.pellesc.se

Main Menu

SelectLine

Started by John Z, May 06, 2026, 11:12:10 AM

Previous topic - Next topic

John Z

Here is a simple add-in, which may or may not be useful for anyone's needs.

Looking for an easy way to select a line?  This might be your solution.

SelectLine is an addin that makes it simple to select an entire line or any portion of a line from the current cursor location to the end of the line, excluding the new line character.  Use the Main Menu - Source - Select Line, or place the cursor and right click to get the pop-up source menu and click 'Select Line'.

That's it - small add-in DLL with a small feature, also uses TimoVJL's alternative DLLmain

Project sources attached (next post below), easy to build or use existing SelectLine.dll

John Z

John Z

#1
Minor update to build a version that always selects the entire line regardless of the cursor position in the line.  To build this way define ALWAYS_WHOLE before building.

Original build a cursor in the middle will select from the cursor to the EOL.
An ALWAYS_WHOLE build a cursor in the middle, or anywhere in the line, selects the entire line.

John Z

Newer source zip include below for version 2

John Z

Well I guess idle for the moment - so here is a better version of SelectLine Add-in.  Version 2 will do both partial line selects and whole line select (when cursor is anywhere in the line).

Operation mode is user configured using Main Menu Tools, Options, Add-ins.
Select the add-in 'Click to select line', then click the Options button on the right.  Answer the dialog question, this will configure the select line mode.  Change anytime using the same procedure.  The mode is retained even when Pelles IDE is closed and reopened. 


Project sources attached, easy to build or use existing SelectLine.dll


John Z