Note Pad - Online Notepad Wordpad Editpad Textpad Tool
Note Pad - Online Notepad Wordpad Editpad Textpad Tool Notepad is a simple text editor for Microsoft Windows and a basic text-editing program which enables computer users to create documents. It was first released as a mouse-based MS-DOS program in 1983, and has been included in all versions of Microsoft Windows since Windows 1.0 in 1985. Microsoft introduced Multi-Tool Notepad, a mouse-based text editor written by Richard Brodie, with the $195 Microsoft Mouse in May 1983 at the Spring COMDEX computer expo in Atlanta. Also introduced at that COMDEX was Multi-Tool Word, designed by Charles Simonyi to work with the mouse.
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 to use in a DOS environment and, occasionally, source code for later compilationor execution, usually through a command prompt.
It is also useful for its negligible use of system resources; making for quick load time and processing time, especially on under-powered hardware. Notepad supports both left-to-right and right-to-left based languages. Unlike WordPad, Notepad does not treat newlines in Unix- or classic Mac OS-style text files correctly. Notepad offers only the most basic text manipulation functions, such as finding text. Only newer versions of Windows include an updated version of Notepad with a search and replace function. However, it has much less functionality in comparison to full-scale editors.
In all versions of Windows, Notepad uses a built-in window class named EDIT and the maximum file size that Notepad can open is dependent on operating system limitations on the size of the EDIT window class, with the limit being different for each version of Windows. Due to the operating system limit of the EDIT window class, the Notepad version shipped with Windows 3.0, Windows 3.1 and Windows 3.11 could not open files larger than 54 KB (kilobytes) and Microsoft recommended not to open files larger than 45 KB, with the official workaround advice provided by Microsoft being "Use another text editor", but this limit was extended to 64 KB in Windows 95 (and remained the same in Windows 98 and Windows Me).
On the Notepad version shipped with Windows XP the limit was 32 MB (megabytes) with the application displaying the message "The file is too large for Notepad. Use another editor to edit the file" if the user attempted to open a file larger than 32 MB. Newer versions of Notepad can open files at least up to 58 MB (megabytes) in size, and on Windows 8.1 the Notepad application is able to open files at least as large as 512 MB (megabytes) but fails to open 1 GB (gigabyte) files displaying the same message that Windows XP users would see ("The file is too large for Notepad. Use another editor to edit the file"). However, on all 32-bit versions of Windows, there is a 2 GB (gigabytes) limit imposed on the maximum memory of all single-process 32-bit programs and thus on 32-bit machines no single-process text editor such as Notepad can open files larger than 2 gigabytes.
Up to Windows 95, Fixedsys was the only available display font for 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 and how it is printed, not how the file is saved to disk. The default font was changed to Consolas on Windows 8.
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).
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.
Notepad accepts text from the Windows clipboard. When clipboard data with multiple formats is pasted into Notepad, the program only accepts text in the CF_TEXT format. 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. Formatted text can be temporarily pasted into Notepad, and then immediately copied again in stripped format to paste into the other program.
Notepad can print files, but doesn't print correctly if Word Wrap is turned on. Headers, footers, and margins can be set and adjusted when preparing to print a file under Page Setup. 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.
You can use Notepad++ to accomplish this in three ways. Just so you know, Notepad++ is a more advanced version of Notepad, which supports syntax highlighting of different code files "out of the box" - PHP included!
Download & install it, fire it up, and load up your PHP file. You should automatically see it beautifully coloured (if not, because the file extension is something other than .php, go to Language -> PHP or Language -> P -> PHP).
If you need to change any of the colours, you can easily do so - just go to Settings -> Styler Configurator. From that menu, you can change the various highlighting and font options, to suit your needs - although the default usually suffices for most.
Then, go to Plugins -> NppExport. From there, you have three options you can consider:
Export to RTF Export to HTML Copy all formats to clipboard Start with the last one - "Copy all formats to clipboard" - which will copy the entire file with the highlighted syntax to the clipboard. Once you click it, then open Microsoft Word, and just hit paste! You should see the beautifully syntax-highlighted code. If something goes wrong, then you can try one of the other options (export to RTF/HTML), although I've never had a problem with the clipboard method.
zumalifeguard's solution (upvoted) is simpler than the original one, as it doesn't need anymore a shell wrapper script.
As I explain in "How can I set up an editor to work with Git on Windows?", I prefer a wrapper, as it is easier to try and switch editors, or change the path of one editor, without having to register said change with a
git config again.
But that is just me.
Additional information: the following solution works with Cygwin, while the zuamlifeguard's solution does not.
C:\prog\git>git config --global core.editor C:/prog/git/npp.sh C:/prog/git/npp.sh: #!/bin/sh "c:/Program Files/Notepad++/notepad++.exe" -multiInst "$*"
does work. Those commands are interpreted as shell script, hence the idea to wrap any windows set of commands in a
(As Franky comments: "Remember to save your
.sh file with Unix style line endings or receive mysterious error messages!")
More details on the SO question How can I set up an editor to work with Git on Windows?
Note the '
-multiInst' option, for ensuring a new instance of notepad++ for each call from Git.
Note also that, if you are using Git on Cygwin (and want to use Notepad++ from Cygwin), then scphantm explains in "using Notepad++ for Git inside Cygwin" that you must be aware that:
gitis passing it a
nppdoesn't know what to do with it
So the script in that case would be:
#!/bin/sh "C:/Program Files (x86)/Notepad++/notepad++.exe" -multiInst -notabbar -nosession -noPlugin "$(cygpath -w "$*")"
Multiple lines for readability:
#!/bin/sh "C:/Program Files (x86)/Notepad++/notepad++.exe" -multiInst -notabbar \ -nosession -noPlugin "$(cygpath -w "$*")"
"$(cygpath -w "$*")" being the important part here.
Val commented (and then deleted) that you should not use
It makes no good to disable the tab during rebase, but makes a lot of harm to general Notepad usability since
-notabbecomes the default setting and you must
Settings>Preferences>General>TabBar> Hide>uncheckevery time you start notepad after rebase. This is hell. You recommended the hell.
So use rather:
#!/bin/sh "C:/Program Files (x86)/Notepad++/notepad++.exe" -multiInst -nosession -noPlugin "$(cygpath -w "$*")"
#!/bin/sh "C:/Program Files (x86)/Notepad++/notepad++.exe" -multiInst -nosession \ -noPlugin "$(cygpath -w "$*")"
If you want to place the script '
npp.sh' in a path with spaces (as in '
c:\program files\...',), you have three options:
Either try to quote the path (single or double quotes), as in:
git config --global core.editor 'C:/program files/git/npp.sh'
or try the shortname notation (not fool-proofed):
git config --global core.editor C:/progra~1/git/npp.sh
or (my favorite) place '
npp.sh' in a directory part of your
%PATH% environment variable. You would not have then to specify any path for the script.
git config --global core.editor npp.sh
Steiny reports in the comments having to do:
git config --global core.editor '"C:/Program Files (x86)/Git/scripts/npp.sh"'