FrontPage Forums
FrontPage How-To Articles
Website Design Articles
Software & Book Store
Newsletter <- Sign up here!
Website Links
About WebWorkshop.org
FrontPage How-To Articles
    
I tried to paste some code that I copied from a Web page into the HTML view in FrontPage, but it got reformatted and now appears as code in the Normal view.
    
If you've visited one of the many How-To sites on the Web, you may have found some HTML or JavaScript code that you'd like to try in your own Web page. However, when you select and copy the code in Internet Explorer, Windows doesn't know it's code and copies all of the formatting as well. When you select the HTML tab in the FrontPage editor then Paste, FrontPage assumes you want the text to appear in your Web page as it appeared in the page you copied it from, and not as "raw" text. (Note that this is only a problem with Internet Explorer; Netscape doesn't pass the formatting information to Windows, only the text itself.)

You can use the Windows Notepad to quickly remove the formatting from the text.

  • First copy the text you want to use in Internet Explorer.
  • Next, start the Windows Notepad (it's usually under Programs > Accessories in the Windows Start menu; I use it so often, I added a shortcut right in the start menu).
  • In the Notepad choose Edit > Paste (or use Ctrl-v as a shortcut).
  • When you paste the text, the insertion point will wind up at the very end of the text; to select the entire block of text, it's easy to just hold down the Ctrl and Shift keys, then hit the Home button on your keyboard. (You can all choose Edit > Select All.) 
  • Select Edit > Copy.
  • Switch to FrontPage, click the HTML tab, locate the place in the HTML code you want to paste the new code in to.
  • Choose Edit > Paste.

<Back to table of contents>

   
Notice: Although every effort has been made to ensure that the information here is correct, be advised that what works on one computer system may not work on another. Use the information you find here at your own risk! WebWorkshop.org and its affiliates are not responsible for any damage or loss due to use (or misuse) of information found here.
   
Copyright ©2001-2004 WebWorkshop.org, all rights reserved
No part of this document may be reproduced without permission from WebWorkshop.org
   
Web Hosting provided by
Intelligent Hosting