Software:Windows Notepad

From HandWiki
Revision as of 15:42, 9 February 2024 by Steve Marsio (talk | contribs) (simplify)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Simple text editor included with Microsoft Windows
Windows Notepad
Notepad Win11.svg
Windows Notepad.png
Notepad on Windows 11
Original author(s)Richard Brodie
Developer(s)Microsoft
Initial release1983; 41 years ago (1983)
(as Multi-Tool Notepad)
Stable release
11.2302.16.0 / February 24, 2023; 20 months ago (2023-02-24)
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

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, 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.

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.[9] This version required Windows 10 preview build 18963.[10] 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.[10][11] 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.[9][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.

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.[13] 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.[14][15]

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

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

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

Encoding support

The supported character encoding includes:

  • ANSI (locale-dependent codepage)
  • Unicode
    • UCS-2 (Windows NT 3.5 or later)
    • UTF-16 (Windows 2000 or later)
    • UTF-8 (Windows 2000 or later)
      • byte order mask selection (Windows 10 or later)

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

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.)[24] 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.[25] On Windows 11, Notepad uses the RichEdit control.[26] 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.[27]

Unicode detection

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.[28] 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.[29][30]

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:

  • 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
  • line numbering, splitting and joining
  • automatic indentation
  • mass-editing of lines
  • RegExp search
  • blank line removal
  • hard alignment (using whitespace characters)
  • whitespace stripping
  • running in portable mode
  • and other advanced text-processing features.

See also

References

  1. "COMDEX: Micros in American mainstream". InfoWorld (IDG): 1. May 23, 1983. ISSN 0199-6649. https://books.google.com/books?id=4i8EAAAAMBAJ&pg=PA1. 
  2. "Mouse and new WP program join Microsoft product lineup". InfoWorld (IDG): 10. May 30, 1983. ISSN 0199-6649. https://books.google.com/books?id=4S8EAAAAMBAJ&pg=PA10. 
  3. "Microsoft ad". IDG. May 23, 1983. p. 85. https://books.google.com/books?id=4i8EAAAAMBAJ&pg=PA85. 
  4. 4.0 4.1 Wallace, James; Erickson, Jim (1992). Hard Drive. Wiley. pp. 238–244. ISBN 0-471-56886-4. https://archive.org/details/harddrivebillgat00wall_0. Retrieved 2017-01-28. 
  5. "In Focus". InfoWorld (IDG): 31. August 29, 1983. ISSN 0199-6649. https://books.google.com/books?id=ty8EAAAAMBAJ&pg=PA31. 
  6. 6.0 6.1 Manes, Stephen (1993). Gates. Doubleday. ISBN 0-385-42075-7. https://books.google.com/books?id=KBtPAAAAMAAJ. Retrieved 2017-01-28. 
  7. "Microsoft ad". InfoWorld (IDG): 40. April 25, 1983. ISSN 0199-6649. https://books.google.com/books?id=7i8EAAAAMBAJ&pg=PA40. 
  8. "In designers' scenario, software undergoes behavior modification". InfoWorld (IDG): 34. August 29, 1983. ISSN 0199-6649. https://books.google.com/books?id=ty8EAAAAMBAJ&pg=PA34. 
  9. 9.0 9.1 Wyciślik-Wilson, Sofia (2020-04-19). "Windows Notepad returns to the Microsoft Store with new features". https://betanews.com/2020/04/19/notepad-app-microsoft-store/. "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." 
  10. 10.0 10.1 Foley, Mary Jo (August 17, 2019). "Microsoft makes Notepad a separate Store app starting with new Windows 10 20H1 test build". ZDNet. https://www.zdnet.com/article/microsoft-makes-notepad-a-separate-store-app-starting-with-new-windows-10-20h1-test-build/. 
  11. Parmar, Mayank (August 19, 2019). "Windows 10 Notepad Added to Microsoft Store, Only for Insiders". Bleeping Computer. https://www.bleepingcomputer.com/news/microsoft/windows-10-notepad-added-to-microsoft-store-only-for-insiders/. 
  12. Popa, Bogdan (16 March 2020). "This Is the New Notepad Icon for Windows 10". https://news.softpedia.com/news/this-is-the-new-notepad-icon-for-windows-10-529461.shtml. 
  13. "Introducing extended line endings support in Notepad". Microsoft. May 8, 2018. http://blogs.msdn.microsoft.com/commandline/2018/05/08/extended-eol-in-notepad/. 
  14. Huculak, Mauro (5 October 2018). "Check out all the changes in Notepad in the October 2018 Update". http://www.windowscentral.com/whats-new-notepad-windows-10-october-2018-update. 
  15. "New features in Notepad in Windows 10". 9 October 2018. https://www.thewindowsclub.com/new-features-in-notepad-in-windows-10-v1809. 
  16. Chen, Raymond (21 May 2018). "Maintaining Notepad is not a full-time job, but it's not an empty job either". Microsoft. http://devblogs.microsoft.com/oldnewthing/20180521-00/?p=98795. "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." 
  17. Wyatt, Allen L. (1996). Windows NT Workstation 4.0 Bible. IDG Books. p. 239. ISBN 0-7645-8011-6. https://archive.org/details/windowsntworksta0000wyat. Retrieved 2022-03-08. 
  18. Russel, Charlie; Crawford, Sharon (1998). Upgrading to Windows 98. Sybex. p. 304. ISBN 0-7821-2190-X. http://archive.org/details/upgradingtowindo00russ. Retrieved 2022-03-08. 
  19. Gralla, Preston (2005). Windows XP Power Hound: Teach Yourself New Tricks. Pogue Press. pp. 94–95. ISBN 0-596-00619-5. https://books.google.com/books?id=n-ZwffW4XcYC&pg=PA94. Retrieved 2022-03-08. 
  20. ""The Clipboard". http://www.cs.binghamton.edu/~reckert/360/15_clipboard_f03.html. 
  21. "Features of LOG and Time/Date Command in Notepad". Microsoft. July 19, 2005. http://support.microsoft.com/kb/81067. 
  22. "How to Use Notepad to Create a Log File". Microsoft. December 20, 2004. http://support.microsoft.com/kb/260563. 
  23. "Introducing extended line endings support in Notepad". Microsoft. 2018-05-08. https://devblogs.microsoft.com/commandline/extended-eol-in-notepad/. 
  24. "Maximum File Size Limits for Notepad". Microsoft. September 24, 2011. https://support.microsoft.com/en-us/kb/59578. 
  25. "What is file size limit for Notepad in Windows XP". October 24, 2007. https://bytes.com/topic/desktop-software/answers/727862-what-file-size-limit-notepad-windows-xp. 
  26. "Windows 11 Notepad" (in en-US). 2022-02-23. https://devblogs.microsoft.com/math-in-office/windows-11-notepad/. 
  27. Rusen, Ciprian Adrian (2022). Windows 11 All-in-One For Dummies. Wiley. p. 557. ISBN 978-1-119-85870-6. https://books.google.com/books?id=gLZeEAAAQBAJ&pg=PT557. Retrieved 2022-03-08. 
  28. "IsTextUnicode()". MSDN. Microsoft. https://msdn.microsoft.com/en-us/library/dd318672(v=vs.85).aspx. 
  29. Chen, Raymond (April 17, 2007). "The Notepad file encoding problem, redux". The Old New Thing. Microsoft. https://devblogs.microsoft.com/oldnewthing/20070417-00/?p=27223. 
  30. 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". http://archives.miloush.net/michkap/archive/2008/03/25/8334796.html. 

External links

  • Notepad in Windows XP Product Documentation at Microsoft.com
  • Notepad FAQ in Windows Vista documentation at Microsoft.com -