Page 2 of 4
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Wed Mar 13, 2019 11:26 pm
by ValiantCuriosity
Hey, no naughty words in the forum. You'll get banned.
@Bogs,
Where have you been? On that couch again? Missed you. The code snip is KOOL. Thanks.
As I was using the textStyle property and writing it over and over again to single out certain words in the text, I wondered if there was a way to do it more gracefully, but I guess, I got the job done. What a pain to count through 300 words to find the right number to style. Sheesh.
Klaus,
Thanks for pointing "toUpper" out. I'm trying to learn the commands but I can't always find them in the dictionary since I don't know what to search for. I end up spending a lot of time searching everywhere using the wrong search term. Kind of like the infinite loop.
The little Story Maker lesson is now as done as it is going to get. I'm going to look at the lesson you recommended to see what kind of trouble I can get into next.
-Rachel
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Wed Mar 13, 2019 11:37 pm
by Klaus
Hi Rachel,
ValiantCuriosity wrote: Wed Mar 13, 2019 11:26 pm
Hey, no naughty words in the forum. You'll get banned.
I'm an admin, so I'm moderately scared.
But see below...
ValiantCuriosity wrote: Wed Mar 13, 2019 11:26 pm
Klaus,
Thanks for pointing "toUpper" out.
That was Mr. Bogs!
I only made a joke about your typo, which obviously noone noticed.
how to set the first char of a word to a capitol letter.
Best
Klaus
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Thu Mar 14, 2019 7:56 am
by richmond62
Oh Dear: its the return of the thing from the Swamp.
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Thu Mar 14, 2019 10:58 am
by bogs
Klaus wrote: Wed Mar 13, 2019 11:37 pm
ValiantCuriosity wrote: Wed Mar 13, 2019 11:26 pm
Klaus,
Thanks for pointing "toUpper" out.
That was Mr. Bogs!
Klaus, I am pretty sure I got 'toUpper' from you at some point, so technically she is correct

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Thu Mar 14, 2019 11:27 am
by Klaus
Well, technically we are all related to Henry VIII, or was it Karl the Great?
Whatever, you get the picture!

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Thu Mar 14, 2019 12:11 pm
by bogs
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Fri Mar 15, 2019 3:37 pm
by bogs
I'm curious as to whether anyone knows the downsides of setting the script editors field to wrap (set dontWrap to false).
I actually tested this, but only lightly with about 6 handlers. I didn't see any detrimental issues pop up, the text wrapped neatly in the editor window, what am I missing?

- Wrapped first handler...
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Fri Mar 15, 2019 3:52 pm
by dunbarx
Bogs.
I'm curious as to whether anyone knows the downsides of setting the script editors field to wrap (set dontWrap to false).
Hacking the IDE again, eh?
But this might be worth its very own thread in "Talking LiveCode'. Why not start one?
Craig
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Fri Mar 15, 2019 4:16 pm
by bogs
dunbarx wrote: Fri Mar 15, 2019 3:52 pm
But this might be worth its very own thread in "Talking LiveCode'. Why not start one?
Well, I thought that since this was the primary question of the thread title
"Option for wrapping Code Editor text" it should be a good time to put it here, but it certainly could go anywhere
dunbarx wrote: Fri Mar 15, 2019 3:52 pm
Hacking the IDE again, eh?
Yah, Richard is a bad influence on me

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Fri Mar 15, 2019 6:44 pm
by FourthWorld
bogs wrote: Fri Mar 15, 2019 3:37 pm
I'm curious as to whether anyone knows the downsides of setting the script editors field to wrap (set dontWrap to false).
I'm guessing it would throw off the line number list.
For the scripter, I can envision usability problems, never able to know by looking at the text whether what you're seeing is a separate statement or a continuation of the statement above it.
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Fri Mar 15, 2019 6:50 pm
by bogs
That could be, I guess I'd have to rig a test to find out if the SE actually uses line numbers for anything (like the debugger), or if it uses the LF or CR or return instead.
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Fri Mar 15, 2019 8:37 pm
by dunbarx
Richard.
I'm guessing it would throw off the line number list.
Would there be any downside ramifications? The only thing I know of that depends on the line number is the soft breakpoint, and that DOES NOT work anyway.
Craig
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Sat Mar 16, 2019 1:09 am
by FourthWorld
dunbarx wrote: Fri Mar 15, 2019 8:37 pm
Richard.
I'm guessing it would throw off the line number list.
Would there be any downside ramifications? The only thing I know of that depends on the line number is the soft breakpoint, and that DOES NOT work anyway.
UTR. Bug #?
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Sat Mar 16, 2019 2:08 am
by dunbarx
UTR?
Soft breakpoints stick now????
That alone is reason enough to migrate to v9.
Craig
Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??
Posted: Sat Mar 16, 2019 3:12 am
by FourthWorld
dunbarx wrote: Sat Mar 16, 2019 2:08 am
UTR?
"Unable To Reproduce"
Soft breakpoints stick now????
That alone is reason enough to migrate to v9.
Are you referring to the red dot in the line numbers list? That's always worked for me. If there's a bug report we should jump on it. The IDE is scripted, I'll bet one of us could fix that in a jiffy.