Windows Notepad Explained

Windows Notepad
Author:Richard Brodie
Developer:Microsoft
Released:
(as Multi-Tool Notepad)
Latest Release Version:11.2302.16.0
Replaces:MS-DOS Editor
Operating System:Microsoft Windows
Platform:IA-32, x86-64, and ARM (historically Itanium, DEC Alpha, MIPS, and PowerPC)
Genre:Text editor
License:Freeware

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.

History

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 as a stripped down version of Multi-Tool Word. Notepad had the ability to bold, underline or italicise text removed. All these programs were to support the release of the $195 Microsoft Mouse, with the mouse coming with Notepad or Word, sometimes both, depending on the date.[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 Doodle drawing app, a musical piano app, Multi-Tool Notepad and/or Multi-tool Word.)[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.)

Since then, Notepad has been part of Microsoft Windows.

Change in development model

Since the introduction of Microsoft Store in 2012, Microsoft has converted some of the built-in Windows apps into Microsoft Store apps (e.g., Sticky Notes), so that they could be updated independent of Windows releases. Within three years, Notepad has appeared on Microsoft Store thrice. The first time was in August 2019; it vanished shortly thereafter. This version required Windows 10 preview build 18963. During this short-lived presence on the Store, technology news blogs speculated that Microsoft intended to de-couple Notepad's life-cycle from that of Windows 10 and update it more frequently through Microsoft Store.[9] [10] Notepad appeared on Microsoft Store for a second time in April 2020, this time, sporting a new logo. It runs on the preview versions of Windows 10, build number 19541 or later.[11] [12] On 16 February 2022, Microsoft started rolling out a new and redesigned version of Notepad to all Windows 11 users. This version had Dark Mode added and a new Find and Replace flyout with the same functionality. Notepad is now available in the Microsoft Store in both Windows 10 and 11. On March 21, 2024, Microsoft announced that it is adding spellcheck and autocorrect to Notepad for Windows 11. The new features are available to Windows Insider members in the Canary and Dev Channels and will be available to all Windows 11 users at a later time.[13] [14]

Features

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 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 either Unix-style or Mac-style newline characters.[15] Windows 10 version 1809 also introduced the keyboard shortcut (deletes the previous word), zoom functionality, the ability to zoom in and out, and the "Search with Bing" function.[16] [17]

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.[18]

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 to display the text. They cannot, however, select individual parts of the text and change their fonts.[19] [20] 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.[21]

Notepad accepts text from the Windows clipboard, but only in the CF_TEXT format.[22] 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.

Notepad 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.[23] [24]

Encoding support

The supported character encoding includes:

Starting with Windows 10 1809 Insider build, it supports processing of line ending types Unix (LF), Mac OS (CR), DOS/Windows (CRLF).[25]

Opening and editing in left-to-right and right-to-left based languages are done via RichEdit controls and input method editors, available in versions for Windows XP or later.

Limitations

Notepad used 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 of this limitation, on Windows 3.0, Windows 3.1, and Windows 3.11, Notepad could not open files larger than 54 KB. (Microsoft recommended using another text editor for opening files larger than 45 KB.)[26] 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 and declined to open bigger files.[27] On Windows 11, Notepad uses the RichEdit control.[28] The size limit was raised to about 1 GB, and attempting to open any file larger than that shows a dialog box suggesting that the user open it with a different text editor.[29]

Unicode detection

See main article: article and Bush hid the facts. 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.[30] 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.[31] [32]

Competing software

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++, Notepad2, and TED Notepad, which include features such as:

See also

External links

Notes and References

  1. COMDEX: Micros in American mainstream . InfoWorld . IDG . May 23, 1983 . 1 . 0199-6649.
  2. Mouse and new WP program join Microsoft product lineup . InfoWorld . IDG . May 30, 1983 . 10 . 0199-6649.
  3. Web site: Microsoft ad . InfoWorld . IDG . May 23, 1983 . 85 . 0199-6649.
  4. Book: Hard Drive . registration . Wallace . James . Erickson . Jim . 1992 . Wiley . 0-471-56886-4 . 238–244 . 2017-01-28.
  5. In Focus . InfoWorld . IDG . August 29, 1983 . 31 . 0199-6649.
  6. Book: Manes, Stephen . Gates . Paul Andrews . 1993 . Doubleday . 0-385-42075-7 . 2017-01-28 . live . https://web.archive.org/web/20170202044405/https://books.google.bg/books?id=KBtPAAAAMAAJ&sa=X&ved=0ahUKEwiX1cCMseXRAhWiQZoKHaiHDKYQ6AEIGjAA . 2017-02-02.
  7. Microsoft ad . InfoWorld . IDG . April 25, 1983 . 40 . 0199-6649.
  8. In designers' ⁷scenario, software undergoes behavior modification . InfoWorld . IDG . August 29, 1983 . 34 . 0199-6649.
  9. News: Mary Jo . Foley . Mary Jo Foley . Microsoft makes Notepad a separate Store app starting with new Windows 10 20H1 test build . . August 17, 2019.
  10. News: Mayank . Parmar . Windows 10 Notepad Added to Microsoft Store, Only for Insiders . August 29, 2019 . . August 19, 2019.
  11. Web site: Wyciślik-Wilson . Sofia . 2020-04-19 . Windows Notepad returns to the Microsoft Store with new features . BetaNews . This is not the first time the app has appeared in the Microsoft Store. Originally announced in August last year, Notepad appeared for a while before vanishing. . 2021-02-09 .
  12. Web site: Popa . Bogdan . This Is the New Notepad Icon for Windows 10 . 2021-02-09 . Softpedia . 16 March 2020.
  13. Web site: Notepad in Windows 11 is finally getting a spellcheck feature . Warren . Tom . March 21, 2024 . March 24, 2024 . The Verge.
  14. Web site: Windows 11 Notepad finally gets spellcheck and autocorrect . Abrams . Lawrence . March 21, 2024 . March 24, 2024 . Bleeping Computer.
  15. Web site: May 8, 2018 . Introducing extended line endings support in Notepad . Windows Command Line Blog . . 2018-05-09 . live . https://web.archive.org/web/20180509202114/https://blogs.msdn.microsoft.com/commandline/2018/05/08/extended-eol-in-notepad/ . 2018-05-09.
  16. Web site: Huculak . Mauro . Check out all the changes in Notepad in the October 2018 Update . Windows Central . 5 October 2018.
  17. Web site: New features in Notepad in Windows 10 . The Windows Club . 9 October 2018.
  18. Web site: Chen . Raymond . 21 May 2018 . Maintaining Notepad is not a full-time job, but it's not an empty job either . 21 June 2021 . The Old New Thing . . 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. .
  19. Book: Wyatt, Allen L.. Windows NT Workstation 4.0 Bible. IDG Books. 1996. 2022-03-08. 239. 0-7645-8011-6.
  20. Book: Upgrading to Windows 98. Russel. Charlie. Crawford. Sharon. Sybex. 1998. 2022-03-08. 304. 0-7821-2190-X.
  21. Book: Gralla, Preston. Windows XP Power Hound: Teach Yourself New Tricks. Pogue Press. 2005. 2022-03-08. 94–95. 0-596-00619-5.
  22. "Web site: The Clipboard . September 29, 2009 . live . https://web.archive.org/web/20090226035433/http://cs.binghamton.edu/~reckert/360/15_clipboard_f03.html . 2009-02-26.
  23. Web site: July 19, 2005. Features of LOG and Time/Date Command in Notepad. dead. https://web.archive.org/web/20070628221631/http://support.microsoft.com/kb/81067. June 28, 2007. Support. Microsoft.
  24. Web site: December 20, 2004. How to Use Notepad to Create a Log File. dead. https://web.archive.org/web/20050406104758/http://support.microsoft.com/kb/260563. April 6, 2005. Support. Microsoft.
  25. Web site: 2018-05-08. Introducing extended line endings support in Notepad. https://web.archive.org/web/20230330091723/https://devblogs.microsoft.com/commandline/extended-eol-in-notepad/. dead. 2023-03-30. Microsoft.
  26. Web site: September 24, 2011 . Maximum File Size Limits for Notepad . 2016-10-28 . Support . . dead . https://web.archive.org/web/20150317213210/http://support.microsoft.com/en-us/kb/59578 . 2015-03-17.
  27. Web site: October 24, 2007 . What is file size limit for Notepad in Windows XP . Bytes . 2016-10-28 . live . https://web.archive.org/web/20161029045531/https://bytes.com/topic/desktop-software/answers/727862-what-file-size-limit-notepad-windows-xp . 2016-10-29.
  28. Web site: 2022-02-23 . Windows 11 Notepad . 2022-03-30 . Math in Office . en-US.
  29. Book: Rusen, Ciprian Adrian. Windows 11 All-in-One For Dummies. Wiley. 2022. 2022-03-08. 557. 978-1-119-85870-6.
  30. Web site: IsTextUnicode . . . January 28, 2017 . live . https://web.archive.org/web/20160910175750/https://msdn.microsoft.com/en-us/library/dd318672(v=vs.85).aspx . 2016-09-10.
  31. Web site: Chen. Raymond. April 17, 2007. The Notepad file encoding problem, redux. live. https://web.archive.org/web/20110903031351/http://blogs.msdn.com/b/oldnewthing/archive/2007/04/17/2158334.aspx. 2011-09-03. 2019-03-20. The Old New Thing. Microsoft.
  32. Web site: 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. 13 April 2017.