[Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

ValiantCuriosity
Posts: 128
Joined: Thu Jun 30, 2016 3:08 am

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post by ValiantCuriosity »

Code: Select all

Washington D.C
Hey, no naughty words in the forum. You'll get banned. :mrgreen:

@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. :D

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
May I never be cured of my curiosity! :D
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post by Klaus »

Hi Rachel,
ValiantCuriosity wrote: Wed Mar 13, 2019 11:26 pm

Code: Select all

Washington D.C
Hey, no naughty words in the forum. You'll get banned. :mrgreen:
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. 8)
how to set the first char of a word to a capitol letter.

Best

Klaus
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post by richmond62 »

Oh Dear: its the return of the thing from the Swamp.
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post 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 8)
Image
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post by Klaus »

Well, technically we are all related to Henry VIII, or was it Karl the Great?
Whatever, you get the picture! :-D
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post 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...
Wrapped first handler...
Image
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post 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
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post 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 :P
Image
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post 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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post 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.
Image
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post 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
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post 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 #?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post by dunbarx »

UTR?

Soft breakpoints stick now????

That alone is reason enough to migrate to v9.

Craig
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: [Solved] Option for wrapping Code Editor text and how to remove spaces in field ??

Post 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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Post Reply