Is this a bug or is it just me?

Robert Brenstein rjb at robelko.com
Thu Mar 10 16:53:55 EST 2005


>I sorta see what you mean. My ultimate goal is to create an editor to
>edit python files but now that I think of it I don't think I would
>want the text to wrap on its own anyway just so that when you make a
>line in python you won't need to break the line of code you are
>working on. Because in python they way things are indented can extend
>beyond the width of the editor. ie:
>try:
>     while x != 5:
>                    name = raw_input("What is your name? ")
>                    while name != "Kevin":
>                                                   print "That is not 
>your name"
>                                                   if name == "Kevin":
>
>       print "Welcome %s" %name
>

You can actually have both. Sort of :) What I do in such situations 
is to have a checkbox "wrap lines" above the field. When checked, it 
sets the dontwrap property off. When unchecked, it sets it on.

on mouseUp
   set the dontwrap of fld "xx" to not the hilited of me
end mouseUp

I also usually toggle the display of horizontal scrollbar, so when 
the wrap is off, I can scroll to the right.

   set the vscrollbar of fld "xx" to the hilited of me

Robert


More information about the use-livecode mailing list