|This article needs additional citations for verification. (October 2016) (Learn how and when to remove this template message)|
|A component of Microsoft Windows|
Notepad on Windows 10
|Included with||All Microsoft Windows versions|
Notepad, formally Microsoft Notepad is a simple text editor for Microsoft Windows and a basic text-editing program which enables computer users to create documents. It has been included in all versions of Microsoft Windows since Windows 1.0 in 1985.
Notepad is a common text-only (plain text) editor. The resulting files—typically saved with the
.txt extension—have no format tags or styles, making the program suitable for editing system files to use in a DOS environment and, occasionally, source code for later compilation or execution, usually through a command prompt. It is also useful for its negligible use of system resources; making for quick load time and processing time, especially on under-powered hardware. Notepad supports both left-to-right and right-to-left based languages. Unlike WordPad, Notepad does not treat newlines in Unix- or classic Mac OS-style text files correctly. Notepad offers only the most basic text manipulation functions, such as finding text. Only newer versions of Windows include an updated version of Notepad with a search and replace function. However, it has much less functionality in comparison to full-scale editors.
In all versions of Windows, Notepad uses a built-in window class named EDIT. Older versions included with Windows 95, Windows 98, Windows Me and Windows 3.1, imposed a 64 K limit on file size, which was an operating system limit of the EDIT class.
Up to Windows 95, Fixedsys was the only available display font for Notepad. Windows NT 4.0 and 98 introduced the ability to change this font. As of Windows 2000, the default font was changed to Lucida Console. The font setting, however, only affects how the text is shown to the user and how it is printed, not how the file is saved to disk. The default font was changed to Consolas on Windows 8.
Up to Windows Me, there were almost no keyboard shortcuts and no line-counting feature. Starting with Windows 2000, shortcuts for common tasks like new, open and save were added, as well as a status-bar with a line counter (available only when word-wrap is disabled).
In the Windows NT-based versions of Windows, Notepad can edit traditional 8-bit text files as well as Unicode text files (both UTF-8 and UTF-16, and in case of UTF-16, both little-endian and big-endian).
Notepad accepts text from the Windows clipboard. When clipboard data with multiple formats is pasted into Notepad, the program only accepts text in the CF_TEXT format. This is useful for stripping embedded font type and style codes from formatted text, such as when copying text from a web page and pasting into an email message or other WYSIWYG text editor. Formatted text can be temporarily pasted into Notepad, and then immediately copied again in stripped format to paste into the other program.
Notepad can print files, but doesn't print correctly if Word Wrap is turned on. Headers, footers, and margins can be set and adjusted when preparing to print a file under Page Setup. The date, file name, and other information can be placed in the headers and footers with various codes consisting of an ampersand ('&') followed by a letter.
The Windows NT version of Notepad, installed by default on Windows 2000 and Windows XP, has the ability to detect Unicode files even when they are missing a byte order mark. To do this, it utilizes a Windows API function called
IsTextUnicode(). However, this function is imperfect, incorrectly identifying some all-lowercase ASCII text as UTF-16. As a result, Notepad interprets a file containing a phrase like "aaaa aaa aaa aaaaa" ("4-3-3-5") as two-byte-encoded Unicode text file and attempts to display it as such. If a font with support for Chinese is installed, nine Chinese characters (桴獩愠灰挠湡戠敲歡) display. Otherwise, it displays squares instead of Chinese characters.
Some people misinterpreted this issue for an easter egg. Many phrases that fit the pattern (including "this app can break" and "bush hid the facts") appeared on the web as hoaxes. Windows expert Raymond Chen correctly attributed it to the Unicode detection algorithm. This issue was resolved in Windows Vista and newer versions of Notepad.
Notepad does not require a lock on the file it opens, so it can open files already opened by other processes, users, or computers, whereas WordPad cannot. Also, since Notepad lacks advanced formatting functionality, many people find its simple, minimalistic user interface (whose look has never changed since Windows 3.1 and whose menus were last altered in Windows XP, when "Format" and "View" replaced "Search") faster and easier to use for basic text operations. The MS-DOS Editor, especially as updated in Windows 95, where it became an MDI application, also provides many features never offered by Notepad.
- How to test outbound mail flow with a file in the Pickup folder
- Force Windows to Use Standard VGA Compatible Driver
- "Features of LOG and Time/Date Command in Notepad". microsoft.com. Microsoft.
- "How to Use Notepad to Create a Log File". microsoft.com. Microsoft.
- "The Clipboard". Retrieved September 29, 2009.
- IsTextUnicode() at MSDN.microsoft.com URL last accessed July 3, 2006.
- "IsTextUnicode". microsoft.com. Microsoft.
- "MSDN Blogs". msdn.com. Microsoft.