home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2006 April / DPPRO0406DVD.ISO / Essentials / Programming / Notepad2 / Source / NP2SRC.ZIP / Notepad2.txt < prev    next >
Encoding:
Text File  |  2004-06-25  |  15.4 KB  |  454 lines

  1.  
  2. =======================================================================
  3. =                                                                     =
  4. =                                                                     =
  5. =    Notepad2 - Yet another Notepad replacement...                    =
  6. =                                                                     =
  7. =                                                                     =
  8. =                                                   Notepad2 1.0.12   =
  9. =                                           (c) Florian Balmer 2004   =
  10. =                                       http://www.flos-freeware.ch   =
  11. =                                                                     =
  12. =                                                                     =
  13. =======================================================================
  14.  
  15.  
  16. Description
  17.  
  18.   The original Notepad shipped with Windows is probably the handiest
  19.   program of all times, small, fast, without frills! Notepad2 tries to
  20.   follow this principle, it's a small, fast and free text editor with
  21.   syntax highlighting for HTML and other common languages. Notepad2
  22.   works on Windows 9x, Me, NT, 2k and XP.
  23.  
  24.  
  25. Features
  26.  
  27.   - Customizable syntax highlighting:
  28.     - HTML, XML, CSS, JavaScript, VBScript, ASP, PHP, CSS, Perl/CGI
  29.     - C/C++, C#, Java, VB, Pascal, Assembler, SQL, Python, NSIS
  30.     - INI, REG, INF, BAT, DIFF
  31.   - Drag & drop text editing inside and outside Notepad2
  32.   - Basic regular expression search and replace
  33.   - Useful word, line and block editing shortcuts
  34.   - Rectangular selection (Alt+Mouse)
  35.   - Brace matching, auto indent, long line marker, zoom functions
  36.   - Support for Unicode, UTF-8, Unix and Mac text files
  37.   - Open shell links
  38.   - Mostly adjustable
  39.  
  40.  
  41. New in Version 1.0.12
  42.  
  43.   - Notepad2 source code now released under the GNU GPL
  44.   - "Read Only" option handles file attributes
  45.   - Enhanced find and replace dialogs with new options
  46.   - Optionally auto close HTML/XML tags (Ctrl+Shift+H)
  47.   - Improved tabify/untabify selection functions
  48.   - New hotkey to select XML scheme (Shift+F11)
  49.  
  50.  
  51. New in Version 1.0.11
  52.  
  53.   - Simple favorites management based on file shortcuts (Alt+I)
  54.   - Optional toolbar buttons for favorites management
  55.   - Improved undo / redo handling of auto indent text
  56.   - Better cursor behaviour for line editing commands
  57.   - Clipboard text is converted according to font character set
  58.   - Auto-select ANSI code page option (File, Encoding, Default...)
  59.   - Windows system text and background colors used by default
  60.   - Enabled some new comment styles for C/C++ related languages
  61.  
  62.  
  63. New in Version 1.0.10
  64.  
  65.   - Option to select a default syntax scheme (F12)
  66.   - Find, replace, upper- and lowercase handle umlauts and accents
  67.   - Paste board feature (cmd switch /b) to collect clipboard entries
  68.   - Text is copied to clipboard in Unicode format (Windows NT/2k/XP)
  69.   - Reload current file without encoding detection (F8)
  70.   - Updated CSS properties to version 2.1
  71.   - "Reuse Window" disabled by default to allow multiple windows
  72.  
  73.  
  74. New in Version 1.0.09
  75.  
  76.   - Convert tabs to spaces and vice versa (Ctrl+Shift+S/T)
  77.   - Insert time/date (short form/long form) (Ctrl+F5, Ctrl+Shift+F5)
  78.   - Insert filename/path and filename (Ctrl+F9, Ctrl+Shift+F9)
  79.   - Added missing copy line command (Ctrl+Shift+C)
  80.   - Enabled script selection in font dialogs
  81.  
  82.  
  83. New in Version 1.0.08
  84.  
  85.   - Find and replace dialogs accept Unicode input (Windows NT/2k/XP)
  86.   - Warning message for large files (customizable using Notepad2.reg)
  87.   - Default file extension is "txt" (customizable using Notepad2.reg)
  88.   - New command line parameters: /c, /g, /?
  89.   - Fixed writing of hidden and system files (Windows XP/2k)
  90.   - Fixed some handling problems with relative pathnames
  91.   - Notepad2.txt outlines how to import and export Notepad2 settings
  92.  
  93.  
  94. New in Version 1.0.07
  95.  
  96.   - Select default encoding for new files
  97.   - Select default line endings for new files
  98.   - Right clicking moves cursor if no selection
  99.   - Zooming with Ctrl+Mousewheel recalculates line number width
  100.  
  101.  
  102. New in Version 1.0.06
  103.  
  104.   - Word wrap settings, show word wrap symbols (Ctrl+Shift+0)
  105.   - Move line up/down (Ctrl+Shift+Up/Down)
  106.   - Remove blank lines (Alt+R)
  107.   - Bookmarks for file navigation (Ctrl+F2)
  108.   - Minimal print header and footer customization
  109.   - Remapped some keyboard shortcuts (see Notepad2.txt)
  110.   - Added a few comments to Notepad2.txt
  111.  
  112.  
  113. New in Version 1.0.05
  114.  
  115.   - Support for XML, ActionScript 2.0, Python, NSIS Script
  116.   - Fully customizable second default style (Shift+F12)
  117.   - Find matching brace (Ctrl+B)
  118.   - Select to matching brace (Ctrl+Shift+B)
  119.   - Goto column (Ctrl+J)
  120.   - Optionally change background color of long lines
  121.   - Transparent mode on Windows 2k and above (Alt+U)
  122.   - Fixed line endings detection for Unicode files
  123.  
  124.  
  125. New in Version 1.0.04
  126.  
  127.   - Fixed loading of UTF-8 files with signature
  128.  
  129.  
  130. New in Version 1.0.03
  131.  
  132.   - Toggle word wrap toolbar button
  133.   - New block command: strip first character (Alt+Z)
  134.   - Strip trailing blanks uses selection, if any
  135.  
  136.  
  137. New in Version 1.0.02
  138.  
  139.   - Reload current file (F5)
  140.   - Revised printing functionality
  141.   - Zooming recalculates line number width
  142.  
  143.  
  144. Installation and Uninstallation
  145.  
  146.   Just put a copy of Notepad2.exe to any directory on your computer. To
  147.   remove the Notepad2 registry entries, run "Notepad2.exe -u" from any
  148.   command line, and then delete Notepad2.exe to have a complete,
  149.   traceless uninstall.
  150.  
  151.  
  152. Keyboard Shortcuts for Notepad2
  153.  
  154.   File
  155.  
  156.     Ctrl+N                New file.
  157.     Ctrl+F4               Close file, identical with Ctrl+N.
  158.     Ctrl+O                Open file.
  159.     F5                    Reload file.
  160.     F8                    Reload file without encoding detection.
  161.     Ctrl+S                Save file.
  162.     F6                    Save file as.
  163.     Ctrl+F6               Save file copy.
  164.     Ctrl+P                Print file.
  165.     Alt+H                 Open recent file.
  166.  
  167.   Tools
  168.  
  169.     Alt+N                 Open document in new window.
  170.     Alt+0                 Open new empty window.
  171.     Ctrl+M                Run metapath file browser plugin.
  172.     Ctrl+L                Launch document.
  173.     Alt+L                 Open with.
  174.     Ctrl+Q                Run command.
  175.  
  176.   Favorites
  177.  
  178.     Alt+I                 Open favorites.
  179.     Alt+K                 Add to favorites.
  180.     F9                    Manage favorites.
  181.  
  182.   Edit
  183.  
  184.     Ctrl+Z                Undo.
  185.     Alt+Backspace         Undo.
  186.     Ctrl+Y                Redo.
  187.     Ctrl+X                Cut.
  188.     Shift+Del             Cut.
  189.     Ctrl+C                Copy.
  190.     Alt+C                 Copy all.
  191.     Ctrl+V                Paste.
  192.     Shift+Ins             Paste.
  193.     Del                   Clear.
  194.     Ctrl+A                Select all.
  195.     Alt+Shift+Arrows      Rectangular selection.
  196.     Ctrl+Enter            New line with toggled auto indent option.
  197.     Ctrl+PgUp/PgDn        Goto previous/next block.
  198.     Ctrl+Shift+PgUp/PgDn  Select to previous/next block.
  199.  
  200.   Word
  201.  
  202.     Ctrl+Space            Select word.
  203.     Ctrl+Backspace        Delete word before/left.
  204.     Ctrl+Del              Delete word after/right.
  205.  
  206.   Line
  207.  
  208.     Ctrl+Shift+Up         Move line up.
  209.     Ctrl+Shift+Down       Move line down.
  210.     Ctrl+T                Transpose line.
  211.     Ctrl+D                Duplicate line.
  212.     Ctrl+Shift+X          Cut line.
  213.     Ctrl+Shift+C          Copy line.
  214.     Ctrl+E                Delete line.
  215.     Ctrl+Shift+Backspace  Delete line left.
  216.     Ctrl+Shift+Del        Delete line right.
  217.  
  218.   Block
  219.  
  220.     Tab                   Indent selected block.
  221.     Shift+Tab             Unindent selected block.
  222.     Alt+Z                 Strip first character.
  223.     Alt+W                 Strip trailing blanks.
  224.     Alt+R                 Remove blank lines.
  225.     Ctrl+I                Split lines.
  226.     Ctrl+Shift+I          Join lines.
  227.  
  228.   Brace
  229.  
  230.     Ctrl+B                Find matching brace.
  231.     Ctrl+Shift+B          Select to matching brace.
  232.  
  233.   Convert
  234.  
  235.     Ctrl+Shift+U          Make uppercase.
  236.     Ctrl+U                Make lowercase.
  237.     Ctrl+Shift+S          Convert tabs to spaces.
  238.     Ctrl+Shift+T          Convert spaces to tabs.
  239.     Ctrl+Shift+A          Convert to ANSI.
  240.     Ctrl+Shift+O          Convert to OEM.
  241.  
  242.   Insert
  243.  
  244.     Ctrl+F5               Time/date (short form).
  245.     Ctrl+Shift+F5         Time/date (long form).
  246.     Ctrl+F9               Filename.
  247.     Ctrl+Shift+F9         Path and filename.
  248.  
  249.   Find, replace
  250.  
  251.     Ctrl+F                Find.
  252.     F3                    Find next.
  253.     Shift+F3              Find previous.
  254.     Ctrl+H                Replace.
  255.     Ctrl+J                Jump to line.
  256.     Ctrl+G                Jump to line.
  257.  
  258.   Bookmarks
  259.  
  260.     F2                    Goto next bookmark.
  261.     Shift+F2              Goto previous bookmark.
  262.     Ctrl+F2               Toggle bookmark.
  263.     Ctrl+Shift+F2         Clear all bookmarks.
  264.  
  265.   Syntax scheme
  266.  
  267.     F12                   Select syntax scheme.
  268.     Shift+F12             Select 2nd default syntax scheme.
  269.     Ctrl+F12              Customize syntax schemes.
  270.     F11                   Select default text syntax scheme.
  271.     Ctrl+F11              Select web source code syntax scheme.
  272.     Shift+F11             Select XML document syntax scheme.
  273.  
  274.   View
  275.  
  276.     Ctrl+W                Toggle word wrap.
  277.     Ctrl+Shift+L          Show long line marker.
  278.     Ctrl+Shift+G          Show indentation guides.
  279.     Ctrl+Shift+N          Show line numbers.
  280.     Ctrl+Shift+M          Show selection margin.
  281.     Ctrl+Shift+8          Show whitespace.
  282.     Ctrl+Shift+9          Show line endings.
  283.     Ctrl+Shift+0          Show wrap symbols.
  284.     Ctrl+Shift+V          Toggle visual brace matching.
  285.     Ctrl+Shift+H          Toggle auto close HTML/XML.
  286.  
  287.   Zoom
  288.  
  289.     Ctrl++                Zoom in.
  290.     Ctrl+-                Zoom out.
  291.     Ctrl+/                Reset zoom.
  292.  
  293.   Settings
  294.  
  295.     Alt+T                  Always on top.
  296.     Alt+U                  Transparent mode.
  297.     F7                     Save settings now.
  298.  
  299.   Misc.
  300.  
  301.     Ctrl+Q                Exit Notepad2.
  302.     Esc                   Optionally minimize or exit Notepad2.
  303.     F1                    Display version info.
  304.  
  305.  
  306. Tips and Tricks, Special Features, Limitations
  307.  
  308.   Regular Expression Syntax
  309.  
  310.   .      Matches any character
  311.  
  312.   \(     This marks the start of a region for tagging a match.
  313.  
  314.   \)     This marks the end of a tagged region.
  315.  
  316.   \n     Where n is 1 through 9 refers to the first through ninth
  317.          tagged region when replacing. For example, if the search
  318.          string was Fred\([1-9]\)XXX and the replace string was
  319.          Sam\1YYY, when applied to Fred2XXX this would generate
  320.          Sam2YYY.
  321.  
  322.   \<     This matches the start of a word.
  323.  
  324.   \>     This matches the end of a word.
  325.  
  326.   \x     This allows you to use a character x that would otherwise
  327.          have a special meaning. For example, \[ would be interpreted
  328.          as [ and not as the start of a character set.
  329.  
  330.   [...]  This indicates a set of characters, for example, [abc] means
  331.          any of the characters a, b or c. You can also use ranges, for
  332.          example [a-z] for any lower case character.
  333.  
  334.   [^...] The complement of the characters in the set. For example,
  335.          [^A-Za-z] means any character except an alphabetic character.
  336.  
  337.   ^      This matches the start of a line (unless used inside a set,
  338.          see above).
  339.  
  340.   $      This matches the end of a line.
  341.  
  342.   *      This matches 0 or more times. For example, Sa*m matches Sm,
  343.          Sam, Saam, Saaam and so on.
  344.  
  345.   +      This matches 1 or more times. For example, Sa+m matches Sam,
  346.          Saam, Saaam and so on.
  347.  
  348.   -----> Examples (don't use quotes)
  349.          - Quote lines: find "^" replace with "> "
  350.          - Unquote lines: find "^> " replace with ""
  351.          - Remove line numbers: find "^[0-9]+" replace with ""
  352.          - Convert tabs to double spaces: find "\t" replace with "  "
  353.  
  354.  
  355.   Setting more Options
  356.  
  357.   The Notepad2.reg file contains additional program settings that must
  358.   be modified directly in the registry. These settings include options
  359.   to customize the toolbar bitmaps and texts. Inspect Notepad2.reg to
  360.   find more explanations.
  361.  
  362.  
  363.   Command Line Parameters
  364.  
  365.   Notepad2.exe [/g ln[,col]] [/n] [/c] [/p x,y,cx,cy[,max]]
  366.                [/i] [/u] [/?] [file]
  367.  
  368.     file: File to open, can be a relative pathname, or a shell link.
  369.           This must be the last argument, quotes are not necessary.
  370.     /g:   Jump to specified position, a line of -1 means end of file.
  371.     /n:   Always open a new Notepad2 window, even if the "reuse-window"
  372.           option is on.
  373.     /c:   Open a new Notepad2 window and paste the clipboard contents.
  374.     /b:   Open a new Notepad2 paste board to collect clipboard entries.
  375.     /p:   Set window position to x,y with size cx,cy, optional value
  376.           max set to nonzero to maximize window.
  377.     /i:   Start as tray icon.
  378.     /u:   Remove the registry entries created by Notepad2.
  379.     /?:   Display a brief summary about command line parameters.
  380.  
  381.  
  382.   Import and Export Settings
  383.  
  384.   The Notepad2 settings can be exported from the registry and imported
  385.   again on a different computer or for a different user. Run
  386.  
  387.     reg.exe export HKCU\Software\Notepad2 MySettings.reg
  388.  
  389.   to export the settings to MySettings.reg. Now either launch this file
  390.   from Explorer or use
  391.  
  392.     reg.exe import MySettings.reg
  393.  
  394.   to restore the settings. Just the style settings can be grabbed with
  395.  
  396.     reg.exe export HKCU\Software\Notepad2\Styles MyStyles.reg
  397.  
  398.   On some earlier versions of Windows, the reg.exe command line tool is
  399.   probably not available, then you have to switch to regedit.exe.
  400.  
  401.  
  402. Source Code
  403.  
  404.   Notepad2 is based on the Scintilla source code editing component:
  405.   http://www.scintilla.org
  406.  
  407.   The full Notepad2 source code is distributed under the terms of the
  408.   GNU General Public License and can be found at:
  409.   http://www.flos-freeware.ch
  410.  
  411.  
  412. Feature Requests
  413.  
  414.   Thank you very much for the overwhelming feedback about Notepad2!
  415.   Feature requests are always welcome, but please keep in mind that
  416.   Notepad2 has been designed as a compact Notepad replacement.
  417.  
  418.   Hyperlink support is currently not provided by the Scintilla source
  419.   code editing component (and not planned), it's unlikely I will
  420.   implement this.
  421.  
  422.   Notepad replacement is easier said than done, I'm sorry! Instructions
  423.   on how to replace Notepad on various versions of Windows can be found
  424.   around in the net. I might create a Notepad2 installer with flexible
  425.   and undoable file association, once.
  426.  
  427.  
  428. Credits and Special Thanks
  429.  
  430.   Here I would like to say "THANK YOU" to the developers of the great
  431.   Scintilla source code editing component (http://www.scintilla.org),
  432.   which is the core of Notepad2. Without Scintilla, the rich features
  433.   found in Notepad2 wouldn't have been possible!
  434.  
  435.   Many thanks to everybody for sending me bug reports and useful hints.
  436.   A special thank goes to Roland Weigelt (http://www.roland-weigelt.de)
  437.   for his helpful thoughts and comments about Notepad2 features and
  438.   usability.
  439.  
  440.  
  441. Copyright
  442.  
  443.   Notepad2 is FREEWARE and may be used and distributed freely. Please
  444.   do not charge any distribution or download fees for this program,
  445.   except for the cost of the distribution medium. The use of the
  446.   software is AT YOUR OWN RISK.
  447.  
  448.   If you have comments or questions, please drop me a note:
  449.   textview@bluewin.ch
  450.  
  451.   (c) Florian Balmer 2004
  452.  
  453. ###
  454.