Windows Notepad

Windows Notepad is a simple text editor for Windows; it creates and edits plain text documents. First released in 1983 to commercialize the computer mouse in MS-DOS, Notepad has been part of every version of Windows ever since.

Windows Notepad
Notepad.png
Windows Notepad.png
Notepad on Windows 10
Original author(s)Richard Brodie
Developer(s)Microsoft
Initial release1983; 38 years ago (1983)
(as Multi-Tool Notepad)
Operating systemMicrosoft Windows
PlatformIA-32, x86-64, and ARM (historically Itanium, DEC Alpha, MIPS, and PowerPC)
PredecessorMS-DOS Editor
TypeText editor
LicenseFreeware
Websitewww.microsoft.com/en-us/p/windows-notepad/9msmlrh6lzf3

HistoryEdit

In May 1983, at the COMDEX computer expo in Atlanta, Microsoft introduced the Multi-Tool Notepad, a mouse-based text editor Richard Brodie had created, along with the $195 Microsoft Mouse. Also appearing at that COMDEX was the Multi-Tool Word, a word processor that Charles Simonyi was developing and supported the mouse.[1][2][3] Most visitors had never heard of a computer mouse before.[4] The mouse began shipping in July.[5] Initial sales were modest because it had no use other than running the programs included in the box (a tutorial, a practice app, and Multi-Tool Notepad.)[6]

The Multi-Tool product line began with expert systems for the Multiplan spreadsheet.[7][8] On the suggestion of Rowland Hanson, Microsoft dropped the Multi-Tool brand name. Hanson's rationale was that "the brand is the hero" and people wouldn't automatically associate "Multi-Tool" with Microsoft. As a result, the Multi-Tool Notepad and the Multi-Tool Word became Windows Notepad and Microsoft Word, respectively. (Hanson also convinced Bill Gates to rename "Interface Manager" to "Windows" before the release of Windows 1.0.)[4][6]

Since then, Notepad has been part of Microsoft Windows.

FeaturesEdit

Notepad is a text editor, i.e., an app specialized in editing plain text. It can edit text files (bearing the ".txt" filename extension) and compatible formats, such as batch files, INI files, and log files. Notepad can read and write plain texts encoded in ASCII, UTF-8, and UTF-16. It supports both left-to-right and right-to-left based languages.

Notepad offers only the most basic text manipulation functions, such as finding and replacing text. Until Windows ME, there were almost no keyboard shortcuts and no line-counting feature. Starting with Windows 2000, shortcuts for common commands like "New", "Open", and "Save" were added, as well as a status bar with a line counter (available only when word-wrap is disabled.) Before Windows 10 version 1809, Notepad could not properly interpret Unix-style or Mac-style newline characters.[9] Windows 10 version 1809 also introduced the Ctrl+← Backspace keyboard shortcut (deletes the a word,) zoom functionality, the ability to zoom in and out, and the "Search with Bing" function.[10][11]

Improving performance has been the main focus of Notepad's development. As part of this effort, Notepad is capable of reading text files even when other apps have acquired a range-based lock on the file.[12]

On Windows 95 and earlier, Notepad renders text files in the Fixedsys font. Starting with Windows NT 4.0 and Windows 98, it allows users to choose their own font. Its default font changed to Lucida Console on Windows 2000, and Consolas on Windows 8.

Notepad can print files. It allows customizing headers, footers, and margins before printing. 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.

Notepad accepts text from the Windows clipboard, but only in the CF_TEXT format.[13] It strips the pasted text of any embedded font and style information. One could temporarily paste formatted text into Notepad, then immediately copy it again to obtain the raw text. The app also has a simple logging function. Each time it opens a file with ".LOG" on its first line, the app inserts a timestamp on the file's last line.[14][15]

LimitationsEdit

Notepad uses a built-in window class named EDIT. The maximum file size Notepad can open depends on operating system limitations on the size of the EDIT window class, with a different limit in each version of Windows. Because to this limitation, on Windows 3.0, Windows 3.1, and Windows 3.11, Notepad could not open files larger than 54 kB (kilobytes). (Microsoft recommended using another text editor for opening files larger than 45 KB.)[16] This limit was extended to 64 KB in Windows 95, with users now directed to WordPad for larger files. On Windows XP, Notepad was limited to 32 MB (megabytes) and declined to open bigger files.[17] On Windows 8.1, it refuses to open files larger than 1 GB (gigabyte) but also has trouble opening anything bigger than 512 MB.[18]

Unicode detectionEdit

On the Windows NT family of operating systems (including Windows 2000 and Windows XP,) Notepad can detect Unicode files even when they lack a byte order mark. To do this, it calls the IsTextUnicode() function of the Windows API.[19] Until Windows Vista, this function was imperfect, incorrectly identifying some all-lowercase ASCII text as UTF-16. As a result, Notepad interpreted a file containing a phrase like "aaaa aaa aaa aaaaa" ("4-3-3-5") as a two-byte-encoded Unicode text file. If a font with support for Chinese was installed, nine Chinese characters (桴獩愠灰挠湡戠敲歡) would display. Otherwise, it would display square substitute characters instead of Chinese characters. This issue was resolved on Windows Vista and newer.[20][21]

Competing softwareEdit

Notepad lacks many basic features available in other text editors, such as block selection and MDI. There are many third-party replacements for Notepad with additional functionality, such as AkelPad, Metapad, Notepad++, and TED Notepad, which include features such as syntax coloring, code folding, regular expressions, macros, manual code page selection, themes, sorting, case changes, external change detection, matching braces, visible line-endings, and visible line-wrap indication.

See alsoEdit

ReferencesEdit

  1. ^ "COMDEX: Micros in American mainstream". InfoWorld. IDG. May 23, 1983. p. 1. ISSN 0199-6649.
  2. ^ "Mouse and new WP program join Microsoft product lineup". InfoWorld. IDG. May 30, 1983. p. 10. ISSN 0199-6649.
  3. ^ "Microsoft ad". InfoWorld. IDG. May 23, 1983. p. 85. ISSN 0199-6649.
  4. ^ a b Wallace, James; Erickson, Jim (1992). Hard Drive. Wiley. pp. 238–244. ISBN 0-471-56886-4. Retrieved 2017-01-28.
  5. ^ "In Focus". InfoWorld. IDG. August 29, 1983. p. 31. ISSN 0199-6649.
  6. ^ a b Manes, Stephen; et al. (Paul Andrews) (1993). Gates. Doubleday. ISBN 0-385-42075-7. Archived from the original on 2017-02-02. Retrieved 2017-01-28.
  7. ^ "Microsoft ad". InfoWorld. IDG. April 25, 1983. p. 40. ISSN 0199-6649.
  8. ^ "In designers' scenario, software undergoes behavior modification". InfoWorld. IDG. August 29, 1983. p. 34. ISSN 0199-6649.
  9. ^ "Introducing extended line endings support in Notepad". Windows Command Line Blog. Microsoft. May 8, 2018. Archived from the original on 2018-05-09. Retrieved 2018-05-09.
  10. ^ Huculak, Mauro (5 October 2018). "Check out all the changes in Notepad in the October 2018 Update". Windows Central.
  11. ^ "New features in Notepad in Windows 10". The Windows Club. 9 October 2018.
  12. ^ Chen, Raymond (21 May 2018). "Maintaining Notepad is not a full-time job, but it's not an empty job either". The Old New Thing. Microsoft. Retrieved 21 June 2021. To load a file, Notepad maps a view of the file as a memory-mapped file and uses that as the source. The code figures out the encoding, performs a code page conversion to UTF-16LE if necessary, puts the result in a memory block, and then uses the EM_SETHANDLE message to hand that entire block to the edit control.
  13. ^ ""The Clipboard". Archived from the original on 2009-02-26. Retrieved September 29, 2009.
  14. ^ "Features of LOG and Time/Date Command in Notepad". Support. Microsoft. July 19, 2005. Archived from the original on June 28, 2007.
  15. ^ "How to Use Notepad to Create a Log File". Support. Microsoft. December 20, 2004. Archived from the original on April 6, 2005.
  16. ^ "Maximum File Size Limits for Notepad". Support. Microsoft. September 24, 2011. Archived from the original on 2015-03-17. Retrieved 2016-10-28.
  17. ^ "What is file size limit for Notepad in Windows XP". Bytes. October 24, 2007. Archived from the original on 2016-10-29. Retrieved 2016-10-28.
  18. ^ Petri, Daniel (October 23, 2015). "Tip for Opening Large Text Files in Windows". Petri.com. Self-published. Archived from the original on 2016-10-29. Retrieved 2016-10-28.
  19. ^ "IsTextUnicode()". MSDN. Microsoft. Archived from the original on 2016-09-10. Retrieved January 28, 2017.
  20. ^ Chen, Raymond (April 17, 2007). "The Notepad file encoding problem, redux". The Old New Thing. Microsoft. Archived from the original on 2011-09-03. Retrieved 2019-03-20.
  21. ^ Kaplan, Michael S. (March 25, 2008). "Bush might've still hid the facts, but he can't hide them from Vista SP1/Server 2008 Notepad". Retrieved 13 April 2017.

External linksEdit