View Single Post
 
Old 10-10-2014, 07:35 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,362
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by ep2002 View Post
I know it's not supposed to, but like I said, once it did hold the code & I was sure I had copied from notepad.
Not only isn't it supposed to, it can't. Notepad files are incapable of containing even contain text formatting, let alone coding of any kind.

Of course, they can contain characters that in other context might equate to code. For example, if you post a Word macro into Notepad, it's just text. If you then copy the same text back to a Word VBA module, it'll function as a macro again. Similarly, if I type something like the following into Notepad and save it, then copy the file to a postscript printer, it will execute a series of postscript commands:

%!PS-Adobe-2.0
/Lsize 1 def
/Left .5 def
/Right .5 def
/Top .5 def
/Bottom .5 def
/BeginX Left 72 mul def
/BeginY 11 Top sub 72 mul def
/WidthBox 8.5 Right sub Left sub 72 mul def
/HeightBox 11 Top sub Bottom sub 72 mul def
Lsize setlinewidth BeginX BeginY moveto WidthBox 0 rlineto 0 HeightBox neg rlineto WidthBox neg 0 rlineto closepath stroke

The same applies to a Notepad file to which I add come content that Internet Explorer can process as HTML code. For all that, the Notepad file is still only a plain text file. It has no 'code' as such - only plain text.

It would help if you could clarify what you mean by "I've had an issue & the code still carried over". What 'code'?

The only other possibility, which I think is altogether more likely, is that you copied & pasted something into Notepad, then pasted the same copy (without re-copying from Notepad) into something else. In that case, formatting, 'code', etc., could indeed carry over, since what is on the clipboard is whatever you originally copied, not the text that was pasted into Notepad.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote