Hi Papi, I ran into the same issue when I built a script to position the cursor at column 78, where I like to place comments, using CTRL+SHIFT+C
I never did get around to cleaning the script up and enhancing it with more features, so it went unreleased. It still might serve as a lesson on cursor positioning within the existing PSPad implementation. I created two String prototypes: renderLen : calculates the render length of a string as displayed by the editor positionCol : positions the cursor at a specified column, taking TAB width in account The script would be greatly enhanced if the TAB width setting in the editor could be accessed by the script rather than hard coded, but... ran out of time and I don't change my TAB widths. ;-) You can download the script here: http://ingk.com/pspad/ingkcc.zip -- Hankejh, [url=http://ingk.com]ingk.com[/url] <http://forum.pspad.com/read.php?2,46305,46307> PSPad freeware editor http://www.pspad.com
