SnippetMaster Support Forums
Return to main website
 
July 02, 2010, 10:58:04 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 02, 2010, 10:58:04 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  How To's & FAQs  |  Topic: Paste from Word « previous next »
Pages: [1] Print
Author Topic: Paste from Word  (Read 1303 times)
Neha

Posts: 4


[-] Paste from Word
« on: November 15, 2007, 03:20:33 AM »

Hi,
When I try to paste from a formatted word file, (both through the paste from word and plain paste option)
The text first displays as formatted data and once I save the file, the formatting is gone.

Also, it automatically takes double line spacing in the snippetmaster editor.

Is there any way to paste the formatted text from a doc file and import directly?

Thanks,
Neha
Report to moderator   Logged
Jenkinhill

Posts: 403



[-] Re: Paste from Word
« Reply #1 on: November 15, 2007, 07:36:32 AM »

Copying and pasting from the Devil's typewriting program (Word) is, as you have found, problematic. There are some formatting options within Word that will never copy across. If you copy direct into the editor window then M$'s junk style code will be copied too, and on saving the codesweeper may well remove any formatting that is not correct XHTML - even then you are likely to end up with junk like
Code:
<p class="MsoNormal">
<span style="font-size: 10pt; font-family: Arial"><span> </span><span lang="EN-US"></span></span>
</p>
So it is better to use the pop-up pasting option for Word. This at least loses the M$ junk code. Some text formatting - paragraphs, bolding, lists etc will copy OK, but tables, for example, are likely to fall apart. Also there may still be some M$ in-line styles there which will over-rule your page CSS.

I rarely paste directly from Word - my usual way is to copy from the document into NoteTab Pro (any good plain text editor will do), then copy and paste from there into the editor, and re-add the formatting. This picks up my styles and ensures consistency.
Report to moderator   Logged

Kelvyn
admin
Forum Administrator
*
Posts: 2847

SnippetMaster Author


WWW
[-] Re: Paste from Word
« Reply #2 on: November 15, 2007, 09:15:45 AM »

I agree with Kelvyn,

The "Paste from Word" function works to "clean up" about 80% of the code that Word produces. 

Unfortunately, there's not much that can be done since MS Word (especially older versions previous to Office 2007) are notorious for adding all kinds of crap into the document code. 

Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  How To's & FAQs  |  Topic: Paste from Word « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!