📄 notepad2.txt
字号:
=======================================================================
= =
= =
= Notepad2 - light-weight Scintilla-based text editor for Windows =
= =
= =
= Notepad2 3.1.21 =
= (c) Florian Balmer 2004-2009 =
= http://www.flos-freeware.ch =
= =
= =
=======================================================================
Description
Notepad2 is a light-weight, free and open source Notepad-like text
editor with syntax highlighting for a few commonly used languages.
It's based on the Scintilla source code editing component and works
on NT-based versions of Windows.
Features
- Syntax highlighting: HTML, XML, PHP, ASP (JS, VBS), CSS,
JavaScript, VBScript, C/C++, C#, Resource Script, Makefiles, Java,
Visual Basic, Pascal, Assembly, SQL, Perl, Python, Configuration
Files, Apache Config Files, Batch Files, Diff Files
- Drag & drop text editing inside and outside Notepad2
- Basic regular expression search and replace
- Useful word, line and block editing shortcuts
- Rectangular selection (Alt+Mouse)
- Brace matching, auto indent, long line marker, zoom functions
- Support for Unicode, UTF-8, Unix and Mac text files
- Open shell links
- Mostly adjustable
New in Version 3.1.21-rc2 (released February 23, 2009)
- No ini-file is created by default (save settings with F7, once)
- "Move Up" and "Move Down" keep selection and work with blocks
- Set cursor to start (Ctrl+,) or end of text selection (Ctrl+.)
- "URL Encode" (Ctrl+Shift+E) and "URL Decode" (Ctrl+Shift+R)
- "Escape" (Ctrl+Alt+E) and "Unescape C Special Chars" (Ctrl+Alt+U)
- "Sort Lines" with several options (Alt+O)
- "Replace Next" assigned to hotkey (F4)
- Auto strip trailing blanks option (File, Line Endings, Default)
- Remapped "Transparent Mode" hotkey to Ctrl+0
- Simple XML detection for files without extensions
- Simple language detection for cgi and fcgi files
- Reload file without file variable parsing (Alt+F8)
- Enabled better styling of C/C++ preprocessor elements
- Recent files and search strings merged with existing items on save
- Paste board mode ignores immediately repeated copy actions
- Accept multiple files from command line (requires quoted spaces)
- /1 command line switch to accept single file argument (no quotes)
- Command line switches to set file encoding and line ending mode
- More /p command line switches (see "Command Line Switches" below)
- /r command line switch to reuse existing window
- /ns and /rs command line switches to enable single file instance
- Renamed /t command line switch to /d (select default text scheme)
- /t command line switch to set window title
- Set window title to excerpt of current text selection (Ctrl+9)
- External commands use current file directory as working directory
- Remember "Save Copy" location until exit
- Require only single click to restore window from tray icon
- "Reuse Window" option timeout improves opening multiple files
- Replaced "Find Up" option with "Find Previous" button in dialogs
- Find and replace dialogs provide new system menu commands
- Dialog boxes use correct theme fonts on Vista
- Incorporated base x64 source code compatibility patch by Kai Liu
- Fixed some problems with relative ini-file locations
- Fixed some minor file variable problems
- Fixed some encoding detection issues
- Fixed some find and replace problems
- Fixed several memory leaks when saving files
- Fixed several memory leaks for editing operations
- Reduced size of Notepad2.exe program file
New in Version 3.0.20 (released October 31, 2008)
- Notepad2 converted to a native Win32 Unicode application
- "Copy Add" (Ctrl+E) to append selected text to clipboard
- "Unwrap Paragraphs" (Ctrl+Shift+J)
- "Strip Last Character" (Alt+U)
- "Select Line", can be used repeatedly (Ctrl+Shift+Space)
- Remapped "Delete Line" hotkey to Ctrl+Shift+D
- Remapped "Transparent Mode" hotkey to Alt+O
- Allow easy toggling of find and replace dialogs (Ctrl+F, Ctrl+H)
- Save and restore find and replace dialog positions (Ctrl+O, Ctrl+P)
- Files with UTF-8 Signature always loaded in UTF-8 mode
- Simple HTML detection for files without extensions
- Support basic Emacs file variables (see FAQ on my website)
- Update timestamps (Shift+F5) (see FAQ on my website)
- %APPDATA% searched for existing ini-file
- Modest enhancements to scheme customization dialog
- Improved performance for saving settings to ini-file
- Less restrictive handling of quoted filenames on command line
- Keep scrolling positions when reloading changed files
- Modified /s command line switch to work with extensions, not ids
- /m command line switch to match specified text
- /q command line switch to force creation of new files
- Pass command line switches to existing windows: /s /t /h /x /g /q
- Proceed to next match after choosing "replace" in replace dialog
- Fixed some more find and replace problems
- Improved visual appearance on Windows Vista
- Updated Scintilla library to 1.77
New in Version 2.1.19 (released April 10, 2008)
- "Line Comment" (Ctrl+Q) and "Stream Comment" (Ctrl+Shift+Q)
- "Title Case" (Ctrl+Alt+T) and "Sentence Case" (Ctrl+Alt+S)
- "Compress Whitespace" (Alt+P) command reduces spaces and tabs
- Original Notepad .LOG feature
- /f command line switch to set ini-file (/f0 to omit ini-file)
- /p command line switch trumps sticky window position
- /p0 uses system default settings for new window position
- Move new off-screen windows prior to resizing
- Option to skip Unicode text detection (File, Encoding, Default)
- Reload file with different default encoding (Ctrl+F8, Shift+F8)
- Unsaved documents with just whitespace considered empty
- Improved handling of relative path names
- File dialog filters can be specified in the Notepad2 ini-file
- Type of indent guides can be specified in the Notepad2 ini-file
- Track width of displayed text to adjust horizontal scroll range
- Selected find results are better scrolled into view
- Restore scrolling positions on revert
- Ctrl+Back and Ctrl+Del stop at newlines, as usual on Windows
- Ctrl+Space doesn't select initial line indentation whitespace
- Ctrl+Tab hotkey modified to always insert a tabulator
- Increase (Alt++) and decrease (Alt+-) long lines limit
- Display long lines limit in statusbar if visual marker enabled
- Import and export settings from customization dialog (Alt+I, Alt+X)
- Added "Regular Expression" style to JavaScript and Java schemes
- Updated filename extension lists with more default types
- Updated Python keywords to version 3.0
- Simplified SQL keywords (merged from MySQL and SQLite)
- Improved compatibility with Windows Vista
- Improved visual appearance of toolbar button images
- Print margins can be set to "0"
- Fixed several bugs with regular expression find and replace
- Fixed bug with hanging of recent files dialog
- Fixed bug with charset not being saved properly
- Fixed bug with display of text selection at the beginning of lines
- Fixed bug with cursor movement at start and end of wrapped lines
- Updated Scintilla library to 1.76
New in Version 2.0.18 (released July 26, 2007)
- "Select To" command in find dialog allows expanding the selection
- "Select To Next" (F2) and "Select To Previous" (Shift+F2)
- "Save Find Text" (Alt+F3) for later use with F2, F3, etc.
- "Swap" (Ctrl+K) to exchange selected text with clipboard contents
- Notepad2.exe program file is compressed with UPX by default
New in Version 2.0.17 (released July 24, 2007)
- Option to allow only one Notepad2 window for each file
- Option to display filename in window title in various forms
- Hotkey Shift+Esc to save file and exit Notepad2
- Indent size can be specified separately from tab width
- Indent guides are highlighted along with matching braces
- Caret can be displayed as a block (specify "block" for caret width)
- Find and replace dialogs can be toggled from the toolbar
- Tray icon is restored when Explorer is restarted
- Fixed bug with brace matching
- Fixed bug with replacement of ^c cutting the last character
- Fixed bug with regular expression search causing infinite loop
- Updated Scintilla library to 1.74
New in Version 2.0.16 (released May 14, 2007)
- The msvcr70.dll runtime library is no longer required
- "Enclose Selection" helper tool (Alt+Q)
- Single line files are opened with default line ending mode
- Remapped hotkey Ctrl+Shift+Z from "Undo" to "Redo"
- Remapped hotkey Ctrl+Shift+Y from "Redo" to "Undo"
- Fixed bug: problem with MRU lists causing random crashes
- Fixed bug: moving lines up/down not working properly
- Fixed bug: window settings overwritten on new screen resolution
New in Version 2.0.15 (released April 07, 2007)
- BSD License for Notepad2 and source code (see License.txt)
- "Insert HTML/XML Tag" helper tool (Alt+X)
- Regex support for \d, \D, \s, \S, \w, \W, \xHH
- Text selection can have "eolfilled" style (on by default)
- Caret blink rate is set to system default on startup
- Support for opening makefiles without filename extension
- Dropped Windows 9x support
- Requires msvcr70.dll runtime library
- Updated Scintilla library to 1.73
New in Version 2.0.14 (not released to the public)
- Find and replace dialogs: Don't wrap around on find option
- Use the clipboard contents as the replacement text (enter ^c)
- Date and time formats can be changed using template strings
- "FileCheckInterval" ini-setting (see FAQ on my website)
New in Version 2.0.13 (not released to the public)
- Settings are stored in ini-file
- File change notification (optional)
- Find and replace dialogs are now modeless
- Multiline find and replace through transform backslashes function
- Find next / previous word / selected text (Ctrl+F3, Ctrl+Shift+F3)
- Find and replace dialogs: exclusive options deactivate each other
- Find wrap notification message can be deactivated
- Preview function in scheme customization dialog
- Quickly change the default font (F2)
- Script information is saved along with font settings
- Selection and current line background support transparency
- Open ASCII files as UTF-8 if the default setting is UTF-8
- Open empty files with default encoding and line ending settings
- Don't prompt to save modified empty untitled documents
- Line endings are always converted to current setting on paste
- Ensure consistent line endings option (File, Line Endings, Default)
- NTFS streams are preserved when saving files
- Switching encoding performs proper text conversion to new encoding
- Encoding conversion notification message can be deactivated
- Encoding selection dialog displays info about system ANSI code page
- Downgraded ANSI code page support to system default only
- Big file wanring message can be deactivated
- "Wrap Text To Column" command (Ctrl+Shift+W)
- "Modify Lines" command to prefix and append text to lines (Alt+M)
- "Duplicate Selection" command (Alt+D)
- "Invert Case" command (Ctrl+Shift+E)
- "Clear clipboard" command (in the "Edit" menu)
- Force indent and unindent (Ctrl+Tab, Ctrl+Shift+Tab)
- Highlight current line (Ctrl+Shift+I)
- Additional hotkey for "New File": Ctrl+F4
- Mapped Ctrl+Shift+Y/Z to Ctrl+Y/Z
- New hotkey for "Tab Settings" (Ctrl+T)
- Changed hotkey for "Join Lines" (Ctrl+J)
- Rearranged some items in the "View" and "Settings" menus
- "Copy" tool button works as "Copy All" when no text selected
- "Clear" tool button works as "Clear All" when no text selected
- Ctrl+Space: select line if word is already selected
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -