Notepad

From Wikipedia, the free encyclopedia

Notepad

Notepad in Windows Vista
Developed by Microsoft
Latest release 6.0.6000.16386 / November 8, 2006
OS Microsoft Windows
Genre Text editor
License MS-EULA
Website Notepad

Notepad is a simple text editor included with all versions of Microsoft Windows since Windows 1.0 in 1985.

Contents

[edit] Overview

Notepad is a common text-only (also referred to as 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 that are to be used in a DOS environment.

One notable feature of Notepad is that it does not support formatting of any kind - if text is copied from a web page and pasted into a word processor, the formatting and embedded metadata comes along with the text, and can be difficult to remove. However, if text is copied from a formatted web site, pasted into Notepad, then copied again from Notepad before being pasted into a destination program, Notepad will have stripped all of the formatting.

Notepad can edit files of almost any format; however, it does not treat Unix- or Mac-style text files correctly (see newline). (Wordpad however does.)

Early versions of Notepad offered only the most basic functions, such as finding text. Newer versions of Windows include an updated version of Notepad with a search and replace function (Ctrl + H), as well as Ctrl + F for search and similar keyboard shortcuts. In older versions such as those included with Windows 95, Windows 98, Windows Me and Windows 3.1, there is a 64k limit on the size of the file being edited, an operating system limit of the EDIT class.

Up to Windows 95, Fixedsys was the only available font for Notepad. Windows NT 4.0 and 98 introduced the ability to change this font. In Windows 2000 and XP the default font was changed to Lucida Console.

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; see Endianness.)

Notepad makes use of a built-in window class named "EDIT".

Notepad also has a built-in simple logging function, which simply inserts a new timestamp each time the file is opened. To activate this feature, the first line of the text file must be ".LOG", without the quotes.[1][2]

[edit] Unicode detection

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()[3][4]. This function is, however, imperfect, incorrectly identifing some all-lowercase ASCII text as UTF-16. As a result, Notepad interprets a file containing a phrase like "aaaa aaa aaa aaaaa" as two-byte Unicode text file and attempts to display it as such. If a font with support for Chinese is installed, Chinese characters are displayed.

A few people misinterpreted this issue for an easter egg. Many phrases which fit the pattern (including "this app can break" and "Bush hid the facts") appeared on the web as hoaxes. Experts correctly attributed it to the Unicode detection algorithm.

This issue has been resolved in Windows Vista version of Notepad.

[edit] Competing software

For many uses, Notepad has been superseded by WordPad or any word processor, such as Microsoft Word. However, 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 interface faster and easier to use for basic text operations. The DOS EDIT text editor, especially as updated in Windows 95, where it became an MDI application, also provides many features never offered by Notepad.

There are many third-party replacements for Notepad with additional functionality, including both free software (e.g. Notepad++ and Notepad2) and freeware (e.g. TED Notepad).

[edit] See also

[edit] References

[edit] External links

  • Notepad in Microsoft's online documentation