Getting Scripts as an RTF file

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10451
Joined: Fri Feb 19, 2010 10:17 am

Getting Scripts as an RTF file

Post by richmond62 »

Screenshot_2026-08-03_11-55-01.jpg
-
This will produce a list of the scripts in a stack.
Attachments
Sucker.livecode.7z
Stack.
(1.25 KiB) Downloaded 31 times
Klaus
Posts: 14332
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Getting Scripts as an RTF file

Post by Klaus »

Here a version that will also colorize the script, so you have the colors in the RTF file, too!
Just a one-liner. :-)

CAVEAT:
This will only work in the IDE, the colorization is in the engine.
Attachments
Sucker_color.livecode.zip
(1.78 KiB) Downloaded 32 times
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10451
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting Scripts as an RTF file

Post by richmond62 »

Super, Thanks. 8)
EMR
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5
Joined: Wed Jun 14, 2006 12:24 pm

Re: Getting Scripts as an RTF file

Post by EMR »

Interesting and helpful!
I did experience a problem with the second version (Sucker_color; the original ran fine). I think the button script refers to itself as "Sucker" when it is actually "Sucker_color" (?)
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10451
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting Scripts as an RTF file

Post by richmond62 »

Yes; that's right: Klaus did not change the name of the stack in the script.

Just open it up and change it. 8)
Klaus
Posts: 14332
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Getting Scripts as an RTF file

Post by Klaus »

For your convenience, here the corrected stack...
Attachments
Sucker_color2.livecode.zip
(1.79 KiB) Downloaded 2 times
Post Reply