@Shekhar said in mark a line using a single button with macro or any feature.:
highlight a line by pressing a single key or by highlight a line by using a macro function.
By “highlight”, I assume you mean “select”, like what is accomplished by triple-clicking a line. Unfortunately, triple-click is not macro-recordable, and there is no single “scintilla command” that you can assign a shortcut to (that I am aware of).
However, using Scintilla command IDs, you can craft your own macro:
Edit %AppData%\Notepad++\shortcuts.xml * * Insert the following into the <Macros> section <Macro name="HomeShiftEnd" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="0" message="2312" wParam="0" lParam="0" sParam="" /> <Action type="0" message="2315" wParam="0" lParam="0" sParam="" /> </Macro> Save. Restart Notepad++Now you have a macro called “HomeShiftEnd” which will do what i think you want. You can assign a keyboard shortcut to that, just like any macro.