Thank you. Did not know about that. It works, but seems for a specific char or chars.
I have tried: on mouseup lock screen repeat with i = 1 to the number of chars of fld "text" if char i of fld "text" is return then set the imagesource of char i of fld "text" to "myreturn" end if end repeat end mouseup but of course it is slow and would be slower if I want to replace spaces. Additionally, if I cut and pasted in the field I need to replace the chars in the pasted text again... What I am looking for is a native replacement of a return, say, with a visible characters wherever it appears. On Sat, 8 Dec 2018 at 01:26, Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > You can set the imageSource of the non-printing characters. They will > remain spaces, tabs, and returns, but can have a small image (you will > have to make or find) displayed in their place. See imageSource in the > Dictionary. > > set the imageSource of character to {imageID |imageName |imageURL |empty} > > > On 12/7/2018 8:12 PM, Kaveh Bazargan via use-livecode wrote: > > Thanks Bob. I did mean non-printing characters. I think just space, tab > and > > return. > > > > The problem with replacing with with a character is that of course it is > > not a space any more, so text would not wrap as normal. I need the user > to > > edit as normal and with normal functionality but see the normally > invisible > > characters. So seems I would need a native solution. :-( > > > > On Sat, 8 Dec 2018 at 00:22, Bob Sneidar via use-livecode < > > use-livecode@lists.runrev.com> wrote: > > > >> Not natively. You would have to replace every non-printing character > >> (that's what you mean by invisible I suppose) with a square digbat or > >> something. If you want to filter for only printable characters, I have a > >> function that dies that, and also there are regex strings for that sort > of > >> thing. > >> > >> Bob S > >> > >> > >>> On Dec 7, 2018, at 15:44 , Kaveh Bazargan via use-livecode < > >> use-livecode@lists.runrev.com> wrote: > >>> Is there any way of seeing invisible characters in a text field, > similar > >> to > >>> the view in text editors and word processors? > >>> > >>> -- > >>> Kaveh Bazargan > >> > >> _______________________________________________ > >> 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 > -- Kaveh Bazargan Director River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter <https://twitter.com/kaveh1000> • LinkedIn <https://www.linkedin.com/in/bazargankaveh/> _______________________________________________ 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