Windows Notepad: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Infobox Windows component |
{{Infobox Windows component |
||
| name = Notepad |
| name = Microsoft Notepad |
||
| logo = Notepad.png |
| logo = Notepad.png |
||
| type = [[Text editor]] |
| type = [[Text editor]] |
||
Line 10: | Line 10: | ||
| related_components = [[WordPad]] |
| related_components = [[WordPad]] |
||
}} |
}} |
||
'''Notepad''' is a simple [[text editor]] for [[Microsoft Windows]]. It has been included in all versions of [[Microsoft Windows]] since [[Windows 1.0]] in 1985. |
''Microsoft 'Notepad''' is a simple [[text editor]] for [[Microsoft Windows]]. It has been included in all versions of [[Microsoft Windows]] since [[Windows 1.0]] in 1985. |
||
== Features == |
== Features == |
||
Notepad is a common text-only ([[plain text]]) editor. The resulting files—typically saved with the <tt>[[Text file|.txt]]</tt> extension—have no format tags or styles, making the program suitable for editing system files that are to be used in a [[DOS]] environment. |
Microsoft Notepad is a common text-only ([[plain text]]) editor. The resulting files—typically saved with the <tt>[[Text file|.txt]]</tt> extension—have no format tags or styles, making the program suitable for editing system files that are to be used in a [[DOS]] environment. |
||
Notepad supports both left-to-right and right-to-left based languages, and one can alternate between these viewing formats by using the right or left Ctrl+Shift keys to go to right-to-left format or left-to-right format, respectively. |
Notepad supports both left-to-right and right-to-left based languages, and one can alternate between these viewing formats by using the right or left Ctrl+Shift keys to go to right-to-left format or left-to-right format, respectively. |
||
Unlike [[WordPad]], Notepad does '''not''' treat [[newline]]s in [[Unix]]- or [[Mac OS|Mac]]-style text files correctly. |
Unlike [[WordPad]], Microsoft Notepad does '''not''' treat [[newline]]s in [[Unix]]- or [[Mac OS|Mac]]-style text files correctly. |
||
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 ([[Control key|Ctrl]] + ''H''), as well as [[Control key|Ctrl]] + ''F'' for search and similar [[keyboard shortcuts]]. |
Early versions of Microsoft Notepad offered only the most basic functions, such as finding text. Newer versions of Microsoft Windows include an updated version of Micorsoft Notepad with a search and replace function ([[Control key|Ctrl]] + ''H''), as well as [[Control key|Ctrl]] + ''F'' for search and similar [[keyboard shortcuts]]. |
||
Notepad makes use of a built-in [[window class]] named "EDIT". 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. |
Microsoft Notepad makes use of a built-in [[window class]] named "EDIT". 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 [[Windows 98|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, not how the file is saved to disk. |
Up to [[Windows 95]], [[Fixedsys]] was the only available [[font]] for Microsoft Notepad. [[Windows NT 4.0]] and [[Windows 98|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, not how the file is saved to disk. |
||
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). |
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, [[Endianness|both little-endian and big-endian]]). |
In the [[Windows NT]]-based versions of Microsoft Windows, Microsoft 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, [[Endianness|both little-endian and big-endian]]). |
||
Notepad also has a simple built-in logging function. Each time a file that starts with <tt>.LOG</tt> is opened, the program inserts a text timestamp on the last line of the file.<ref>[http://support.microsoft.com/kb/81067 Features of LOG and Time/Date Command in Notepad]</ref><ref>[http://support.microsoft.com/kb/260563 How to Use Notepad to Create a Log File]</ref> |
Microsoft Notepad also has a simple built-in logging function. Each time a file that starts with <tt>.LOG</tt> is opened, the program inserts a text timestamp on the last line of the file.<ref>[http://support.microsoft.com/kb/81067 Features of LOG and Time/Date Command in Notepad]</ref><ref>[http://support.microsoft.com/kb/260563 How to Use Notepad to Create a Log File]</ref> |
||
Notepad accepts text from the Windows [[clipboard (software)|clipboard]]. When clipboard data with multiple formats is pasted into Notepad, the program will only accept text in the <tt>CF_TEXT</tt> format.<ref>"[http://www.cs.binghamton.edu/~reckert/360/15_clipboard_f03.html The Clipboard]". Retrieved September 29, 2009.</ref><!-- an attempt to replace the deleted para, but I can't find a source that says that IE, Firefox, etc. "pre-strip" copied webpage content and store the plain text parts as CF_TEXT for text editors to use. --[[User:AnOddName]] --> 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. The formatted text is temporarily pasted into Notepad, and then immediately copied again in stripped format to be pasted into the other program. |
Microsoft Notepad accepts text from the Microsoft Windows [[clipboard (software)|clipboard]]. When clipboard data with multiple formats is pasted into Microsoft Notepad, the program will only accept text in the <tt>CF_TEXT</tt> format.<ref>"[http://www.cs.binghamton.edu/~reckert/360/15_clipboard_f03.html The Clipboard]". Retrieved September 29, 2009.</ref><!-- an attempt to replace the deleted para, but I can't find a source that says that IE, Firefox, etc. "pre-strip" copied webpage content and store the plain text parts as CF_TEXT for text editors to use. --[[User:AnOddName]] --> 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. The formatted text is temporarily pasted into Microsoft Notepad, and then immediately copied again in stripped format to be pasted into the other program. |
||
Simple text editors like Notepad may be used to edit text with [[markup language|markup]], such as [[HTML]]. However, because they lack many features (such as [[syntax highlighting]]), web developers may favor more specialized editors for this purpose (''see [[List of text editors]]''). |
Simple text editors like Microsoft Notepad may be used to edit text with [[markup language|markup]], such as [[HTML]]. However, because they lack many features (such as [[syntax highlighting]]), web developers may favor more specialized editors for this purpose (''see [[List of text editors]]''). |
||
== Unicode detection == |
== 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|byte order mark]]. To do this, it utilizes a Windows API function called <code>IsTextUnicode()</code>.<ref>[http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_81np.asp IsTextUnicode() at MSDN.microsoft.com] URL last accessed July 3, 2006.</ref><ref>[http://msdn2.microsoft.com/en-us/library/ms776445(VS.85).aspx IsTextUnicode() at MSDN2.microsoft.com]</ref> 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 Unicode text file and attempts to display it as such. If a font with support for Chinese is installed, nine Chinese characters are displayed; otherwise, it will display squares instead of Chinese characters. |
The Microsoft Windows NT version of Microsoft 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|byte order mark]]. To do this, it utilizes a Windows API function called <code>IsTextUnicode()</code>.<ref>[http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_81np.asp IsTextUnicode() at MSDN.microsoft.com] URL last accessed July 3, 2006.</ref><ref>[http://msdn2.microsoft.com/en-us/library/ms776445(VS.85).aspx IsTextUnicode() at MSDN2.microsoft.com]</ref> However, this function is imperfect, incorrectly identifying some all-lowercase [[ASCII]] text as UTF-16. As a result, Microsoft Notepad interprets a file containing a phrase like "aaaa aaa aaa aaaaa" ("4-3-3-5") as two-byte Unicode text file and attempts to display it as such. If a font with support for Chinese is installed, nine Chinese characters are displayed; otherwise, it will display squares instead of Chinese characters. |
||
A few people misinterpreted this issue for an [[Easter egg (virtual)|easter egg]].{{Fact|date=June 2008}} Many phrases which fit the pattern (including “this app can break”, “[[Bush hid the facts]]” and “[[Acre (state)|acre]] vai pra [[Rede Globo|globo]]”) appeared on the web as [[hoax]]es. Windows expert [[Raymond Chen]] correctly attributed it to the Unicode detection algorithm.<ref>[http://blogs.msdn.com/b/oldnewthing/archive/2007/04/17/2158334.aspx]</ref> |
A few people misinterpreted this issue for an [[Easter egg (virtual)|easter egg]].{{Fact|date=June 2008}} Many phrases which fit the pattern (including “this app can break”, “[[Bush hid the facts]]” and “[[Acre (state)|acre]] vai pra [[Rede Globo|globo]]”) appeared on the web as [[hoax]]es. Microsoft Windows expert [[Raymond Chen]] correctly attributed it to the Unicode detection algorithm.<ref>[http://blogs.msdn.com/b/oldnewthing/archive/2007/04/17/2158334.aspx]</ref> |
||
This issue has been resolved in the [[Windows Vista]] and [[Windows 7]] versions of Notepad. |
This issue has been resolved in the [[Windows Vista]] and [[Windows 7]] versions of Microsoft Notepad. |
||
== Competing software == |
== Competing software == |
||
Notepad does not require a [[lock (software engineering)|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 [[edit.com|MS-DOS Editor]], especially as updated in Windows 95, where it became an [[Multiple document interface|MDI]] application, also provides many features never offered by Notepad. |
Microsoft Notepad does not require a [[lock (software engineering)|lock]] on the file it opens, so it can open files already opened by other processes, users, or computers, whereas WordPad cannot. Also, since Microsoft Notepad lacks advanced formatting functionality, many people find its simple interface faster and easier to use for basic text operations. The [[edit.com|MS-DOS Editor]], especially as updated in Microsoft Windows 95, where it became an [[Multiple document interface|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]]). |
There are many third-party replacements for microsoft Notepad with additional functionality, including both [[free software]] (e.g. [[Notepad++]] and [[Notepad2]]) and [[freeware]] (e.g. [[TED Notepad]]). |
||
Notepad lacks many features available in other text editors, such as Unix-format [[newline]]s, [[code folding]], [[regular expressions]], [[macros]], block-select, and [[Multiple document interface|MDI]]. |
Microsoft Notepad lacks many features available in other text editors, such as Unix-format [[newline]]s, [[code folding]], [[regular expressions]], [[macros]], block-select, and [[Multiple document interface|MDI]]. |
||
== See also == |
== See also == |
Revision as of 15:01, 25 August 2011
Template:Infobox Windows component Microsoft 'Notepad' is a simple text editor for Microsoft Windows. It has been included in all versions of Microsoft Windows since Windows 1.0 in 1985.
Features
Microsoft 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 that are to be used in a DOS environment.
Notepad supports both left-to-right and right-to-left based languages, and one can alternate between these viewing formats by using the right or left Ctrl+Shift keys to go to right-to-left format or left-to-right format, respectively.
Unlike WordPad, Microsoft Notepad does not treat newlines in Unix- or Mac-style text files correctly.
Early versions of Microsoft Notepad offered only the most basic functions, such as finding text. Newer versions of Microsoft Windows include an updated version of Micorsoft Notepad with a search and replace function (Ctrl + H), as well as Ctrl + F for search and similar keyboard shortcuts.
Microsoft Notepad makes use of a built-in window class named "EDIT". 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 Microsoft 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, not how the file is saved to disk.
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 Microsoft Windows, Microsoft 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).
Microsoft Notepad also has a simple built-in logging function. Each time a file that starts with .LOG is opened, the program inserts a text timestamp on the last line of the file.[1][2]
Microsoft Notepad accepts text from the Microsoft Windows clipboard. When clipboard data with multiple formats is pasted into Microsoft Notepad, the program will only accept text in the CF_TEXT format.[3] 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. The formatted text is temporarily pasted into Microsoft Notepad, and then immediately copied again in stripped format to be pasted into the other program.
Simple text editors like Microsoft Notepad may be used to edit text with markup, such as HTML. However, because they lack many features (such as syntax highlighting), web developers may favor more specialized editors for this purpose (see List of text editors).
Unicode detection
The Microsoft Windows NT version of Microsoft 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()
.[4][5] However, this function is imperfect, incorrectly identifying some all-lowercase ASCII text as UTF-16. As a result, Microsoft Notepad interprets a file containing a phrase like "aaaa aaa aaa aaaaa" ("4-3-3-5") as two-byte Unicode text file and attempts to display it as such. If a font with support for Chinese is installed, nine Chinese characters are displayed; otherwise, it will display squares instead of Chinese characters.
A few people misinterpreted this issue for an easter egg.[citation needed] Many phrases which fit the pattern (including “this app can break”, “Bush hid the facts” and “acre vai pra globo”) appeared on the web as hoaxes. Microsoft Windows expert Raymond Chen correctly attributed it to the Unicode detection algorithm.[6]
This issue has been resolved in the Windows Vista and Windows 7 versions of Microsoft Notepad.
Competing software
Microsoft 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 Microsoft Notepad lacks advanced formatting functionality, many people find its simple interface faster and easier to use for basic text operations. The MS-DOS Editor, especially as updated in Microsoft Windows 95, where it became an MDI application, also provides many features never offered by Notepad.
There are many third-party replacements for microsoft Notepad with additional functionality, including both free software (e.g. Notepad++ and Notepad2) and freeware (e.g. TED Notepad).
Microsoft Notepad lacks many features available in other text editors, such as Unix-format newlines, code folding, regular expressions, macros, block-select, and MDI.
See also
References
- ^ Features of LOG and Time/Date Command in Notepad
- ^ How to Use Notepad to Create a Log File
- ^ "The Clipboard". Retrieved September 29, 2009.
- ^ IsTextUnicode() at MSDN.microsoft.com URL last accessed July 3, 2006.
- ^ IsTextUnicode() at MSDN2.microsoft.com
- ^ [1]
External links
- Notepad in Windows XP Product Documentation at Microsoft.com
- Notepad FAQ in Windows Vista documentation at Microsoft.com