Paste Code to Match Existing Formatting

charles61 cszasz at mac.com
Fri Apr 19 22:34:06 EDT 2013


Igor,

Thanks. I am aware of but was wondering how to script this in LiveCode to do this automatically. In the past, I have an option menu where the use could select font and font size for pasting from an app to a word processing document. 

Sent from my iPad

On Apr 19, 2013, at 9:15 PM, "Igor de Oliveira Couto-3 [via Runtime Revolution]" <ml-node+s278305n4663669h68 at n4.nabble.com> wrote:

> On 20/04/2013, at 11:04 AM, charles61 <[hidden email]> wrote: 
> 
> > How do you script to allow the user to paste the selected text into a 
> > document so that it matches the type of font and size of font used in the 
> > word processing document? 
> 
> Whether the user can match the format of the text in the document will depend on which program they are using, not on the way you copy the text. 
> 
> On the Mac, for instance, some programs have a "Paste and Match Style" command, in the Edit menu, as well as the normal "Paste". The difference being, that if you select the normal "Paste", it will paste your text *exactly* as it was copied - ie., with the format (font, size, etc.) the way it was copied originally. If you select "Paste and Match Style", then it will ignore the formatting of the text on the clipboard, and will force it to follow the formatting of the document where you're pasting it. 
> 
> I hope this helps. 
> 
> -- 
> Igor Couto 
> Sydney, Australia 
> 
> 
> 
> 
> 
> _______________________________________________ 
> use-livecode mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://runtime-revolution.278305.n4.nabble.com/Paste-Code-to-Match-Existing-Formatting-tp4663668p4663669.html
> To unsubscribe from Paste Code to Match Existing Formatting, click here.
> NAML




--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Paste-Code-to-Match-Existing-Formatting-tp4663668p4663673.html
Sent from the Revolution - User mailing list archive at Nabble.com.


More information about the use-livecode mailing list