Link texstyle

Yves COPPE yvescoppe at skynet.be
Sat Apr 5 06:20:51 EDT 2008


Le 5 avr. 08 à 10:56, Eric Chatonet a écrit :

> Bonjour Yves,
>
> Le 5 avr. 08 à 08:26, Yves COPPE a écrit :
>> On mac OS X 10.5.2
>>
>> I have a textfile
>> In the text file, there is plain text and also website adress  
>> (hyperlink style)
>> I'd like to import the text in a fld in a stack so that I can  
>> preserve the text style of the text file and I can click on the  
>> link from within my stack and automatically launch safari
>>
>> How can I  proceed ?
>>
>> Something like
>>
>> put URL("file:"& tFilepath) into fld "myFiled"
>
> Two possibilities at first sight:
> Or you 'text' file may be imported using 'set the rtfText or  
> htmlText' and you'll have only to write a linkClicked handler.
> Or it is plain text:
> In this case, you have to parse it using some regex to localize  
> possible links and set their style accordingly first.
> Hope this helps.
>

ok, merci beaucoup !


Greetings.

Yves COPPE
yvescoppe at skynet.be




More information about the use-livecode mailing list