[Done] Add Word Wrap Mode to Advanced Editor

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

[Done] Add Word Wrap Mode to Advanced Editor

Post by jpuziano » Tue Oct 17, 2006 12:42 am

Hi Marcus,

I use other editors for other things but stay with the Macro Scheduler editor for the great F1 help, color syntax highlighting, etc.

And now we even have snippets and many more improvements to the editor however... I often find myself pasting in large chunks of code from other sources and then horizontal scrolling trying to read lengthy comments.

It would be so nice to have an option to toggle "Word Wrap" on or off, similar to how it works in Notepad.

Is this a possibility? Anybody else out there hate horizontal scrolling?
Last edited by jpuziano on Sat Sep 27, 2008 7:03 am, edited 5 times in total.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Tue Oct 17, 2006 2:05 am

Wouldn't having to go through the pasted code to individually comment the split lines be a bigger pain?

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Tue Oct 17, 2006 2:24 am

Me_again wrote:Wouldn't having to go through the pasted code to individually comment the split lines be a bigger pain?
Hi Me_again,

No for two reasons:

- block commenting would still work
- it shouldn't require more // commenting at the the start of the lines

The Advanced Editor already supports line-wrap of a sort. To see it, simply enter an extremely long line:
  • Send>IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII...
..but hold the "I" key down for a long time. Once you've past 2048 chars (something like that, its large), you'll see the line suddenly "wrap" :shock: and spill over onto the next bunch of lines. All chars/lines are now in view at once but its still just a single line and would only need one "//" at the start. The first line still shows a line number but the following displayed lines only show "line-wrap" symbols... it shows they are a continuation of the previous line.

Try it and see...

I would just like to have this occur much earlier than 2048 chars... rather when the chars reached the edge of the editor window... just like the "Word Wrap" feature in Notepad.
Last edited by jpuziano on Thu Nov 23, 2006 7:14 am, edited 2 times in total.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Tue Oct 17, 2006 1:40 pm

OK, I see what you mean, just the display.

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Nov 22, 2007 11:08 pm

Hi Marcus,

Is there any chance of getting a "Word Wrap" mode added to the Macro Scheduler Advanced Editor?

For example, Notepad has a menu item called Word Wrap in the Format menu that can be toggled on and off.

If you could add something similar, it would be much appreciated and save a *lot* of horizontal scrolling.

Thanks for considering this and take care.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

stbede77
Newbie
Posts: 18
Joined: Wed Oct 25, 2006 7:04 pm

Post by stbede77 » Fri Nov 23, 2007 9:43 pm

jpuziano,

You say you have a good amount of horizontal scrolling.... how many lines of code do you have in your macros?

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Fri Nov 23, 2007 9:58 pm

stbede77 wrote:jpuziano,

You say you have a good amount of horizontal scrolling.... how many lines of code do you have in your macros?
Some are very short, some quite long, but its not the number of lines of code that's a problem... its the length of some of the lines, like I said earlier...
jpuziano wrote:I often find myself pasting in large chunks of code from other sources and then horizontal scrolling trying to read lengthy comments.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Nov 23, 2007 10:29 pm

Will add word wrap in v10. During debug it will have to be temporary disabled. But it can be re-enabled after debug.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Fri Nov 23, 2007 10:39 pm

mtettmar wrote:Will add word wrap in v10.
Great news, thanks.
mtettmar wrote:During debug it will have to be temporary disabled. But it can be re-enabled after debug.
Not a problem at all... thanks again, looking forward to this in Version 10.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts