Re: accessing colorized script
Peter M. Brigham, MD pmbrig@... writes: Yes. When I use -1 instead of the lengthier form, it won't compile, and the long form compiles but doesn't do anything when I execute it. No error, no action. MacBook, OSX 10.6.8, Rev Studio 4.5.3, build 1210, operating on an ordinary text field. I was so hopeful! Any other ideas? As long as you're staying in the IDE, you can let the IDE's script editor set up the colorization tables for you: on mouseUp pMouseBtnNo local tScript local tNum put field fldScript into tScript put the number of lines of field fldScript into tNum send sePrefInit to stack revNewScriptEditor send revSEColorize tScript,default to stack revNewScriptEditor _internal script colorize line 1 to tNum of field fldScript end mouseUp -- Mark Wieder ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
Peter- Thursday, March 22, 2012, 6:48:15 PM, you wrote: Works like a charm! Fantastic!!! I am in awe!!! How did you discover this? Can't claim much ingenuity involved. Just poking about in the script editor stack and then just trial and (lots of) error. I was really hoping I could get it down to two lines, but that's been eluding me. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
The new 5.5 release has lots of stuff related to field formatting. Maybe some of that might help, especially if RunRev used the new features to colorise scripts. Pete On Wed, Mar 21, 2012 at 9:22 AM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Peter, Perhaps you could use MetaCard's script colorising routines. http://qery.us/1w9 -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 21 mrt 2012, at 13:44, Peter M. Brigham, MD wrote: Oh, too bad. Well, at least it's simple to color the comments green in my display field, that facilitates looking through the scripts to some extent. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
accessing colorized script
Anyone know how I can get the colorized htmltext of a script from the script editor without opening the editor and copying the text? I have a handler that puts a section of a stack script into a field -- pretty straightforward to just extract the relevant plain text from the script. But it would be a bonus if I could put the colorized script into the field without recreating the colorizing scripts of the IDE. I'm doing this in the IDE, not a standalone, so I could make use of the hooks in the IDE if I could figure out how. I've looked at the scripts in the revNewScriptEditor stack but can't figure them out. I'm looking for something like a revColorizeScript handler -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
On 3/20/12 9:30 AM, Peter M. Brigham, MD wrote: Anyone know how I can get the colorized htmltext of a script from the script editor without opening the editor and copying the text? I don't think you can any more, the colorization is done by the engine. There used to be a script for it in older versions of the IDE. If you have an old version of Rev you might find it. I can't recall which version had the changeover but if you go back to, say, version 3.x it's probably in there. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
Confounded new fangled engines! You can't work on 'em these days! Bob On Mar 20, 2012, at 8:46 AM, J. Landman Gay wrote: On 3/20/12 9:30 AM, Peter M. Brigham, MD wrote: Anyone know how I can get the colorized htmltext of a script from the script editor without opening the editor and copying the text? I don't think you can any more, the colorization is done by the engine. There used to be a script for it in older versions of the IDE. If you have an old version of Rev you might find it. I can't recall which version had the changeover but if you go back to, say, version 3.x it's probably in there. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
Could you use the one from GLX ? (I don't know how stand alone it is, or how hard it might be to extract from its context). -- Alex. On 20/03/2012 15:46, J. Landman Gay wrote: On 3/20/12 9:30 AM, Peter M. Brigham, MD wrote: Anyone know how I can get the colorized htmltext of a script from the script editor without opening the editor and copying the text? I don't think you can any more, the colorization is done by the engine. There used to be a script for it in older versions of the IDE. If you have an old version of Rev you might find it. I can't recall which version had the changeover but if you go back to, say, version 3.x it's probably in there. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
On 3/20/12 2:24 PM, Mark Wieder wrote: Peter M. Brigham, MDpmbrig@... writes: I'm looking for something like a revColorizeScript handler _internal script colorize line 1 to (the number of lines of field 1) of field 1 Ooooh! -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
Jacque- Tuesday, March 20, 2012, 1:20:51 PM, you wrote: _internal script colorize line 1 to (the number of lines of field 1) of field 1 Ooooh! You can also use chars instead of lines. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
On 3/20/12 3:30 PM, Mark Wieder wrote: Jacque- Tuesday, March 20, 2012, 1:20:51 PM, you wrote: _internal script colorize line 1 to (the number of lines of field 1) of field 1 Ooooh! You can also use chars instead of lines. You mean like, line 2 to -1 of ...oh never mind. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
Jacque- Tuesday, March 20, 2012, 1:44:08 PM, you wrote: On 3/20/12 3:30 PM, Mark Wieder wrote: Jacque- Tuesday, March 20, 2012, 1:20:51 PM, you wrote: _internal script colorize line 1 to (the number of lines of field 1) of field 1 Ooooh! You can also use chars instead of lines. You mean like, line 2 to -1 of ...oh never mind. Actually, (ignoring the other discussion...) the colorize routine for some reason won't take -1 as a parameter - you have to be explicit about it and say (the number of lines of x) instead. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: accessing colorized script
That will invert the colors of the previous lines to their polar opposites. But only if they have a trailing CR. ;-) Bob You mean like, line 2 to -1 of ...oh never mind. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode