Exporting coloured text to HTML and RTF from 8.1.4
richmondmathewson at gmail.com
Sun Jul 2 17:51:14 CEST 2017
askfile "Choose where you wish to export your text"
puttheRTFtextoffld "fRESULT" intourl("file:" & it & ".rtf")
setthedefaultFoldertoitem 1 to-2 ofthelongFilePathofit
On 7/2/17 6:24 pm, Tore Nilsen via use-livecode wrote:
> How are you trying to export the text? Works alright here with Indy 8.1.4 and MacOS 10.13.
> Sample script that works for me:
> on mouseUp
> ask file "Give your file a name:”
> put "file:" & it into tURL
> if char - 1 to -4 of tURL <> ".rtf" then
> put ".rtf" after tURL
> end if
> put rtfText of field 1 into url tURL
> end mouseUp
> Tore Nilsen
>> 2. jul. 2017 kl. 16:37 skrev Richmond Mathewson via use-livecode <use-livecode at lists.runrev.com>:
>> I like blue cheese . . .
>> But I don't like what happens when I try to export coloured text from
>> a field in LC 8.1.4 as the _colours_ are NOT exported.
>> This is ODD as a while back the colours were exporting . . . .
>> Mac OS 10.7.8, LC 8.1.4 Indy.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode