Jedit 4.1 User's Guide
Total Page:16
File Type:pdf, Size:1020Kb
jEdit 4.1 User’s Guide jEdit 4.1 User’s Guide Copyright © 1999, 2003 Slava Pestov Copyright © 2001, 2002 John Gellene Legal Notice Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no “Invariant Sections”, “Front-Cover Texts” or “Back-Cover Texts”, each as defined in the license. A copy of the license can be found in the file COPYING.DOC.txt included with jEdit. Table of Contents I. Using jEdit ........................................................................................................................ ix 1. Starting jEdit ................................................................................................................1 1.1. Conventions ......................................................................................................1 1.2. Platform-Independent Instructions....................................................................2 1.3. Starting jEdit on Windows................................................................................3 1.4. Command Line Usage.......................................................................................4 2. jEdit Basics ..................................................................................................................7 2.1. Buffers...............................................................................................................7 2.1.1. Memory Usage.......................................................................................7 2.2. Views.................................................................................................................8 2.2.1. Window Docking ...................................................................................9 2.2.2. The Status Bar........................................................................................9 2.3. The Text Area and Gutter................................................................................11 3. Working With Files....................................................................................................13 3.1. Creating New Files .........................................................................................13 3.2. Opening Files..................................................................................................13 3.3. Saving Files.....................................................................................................14 3.3.1. Autosave and Crash Recovery .............................................................14 3.3.2. Backups................................................................................................15 3.4. Line Separators ...............................................................................................15 3.5. Character Encodings .......................................................................................16 3.5.1. Commonly Used Encodings ................................................................16 3.6. The File System Browser................................................................................17 3.6.1. Navigating the File System..................................................................17 3.6.2. The Tool Bar ........................................................................................18 3.6.3. The Commands Menu..........................................................................18 3.6.4. The Plugins Menu................................................................................19 3.6.5. The Favorites Menu .............................................................................19 3.6.6. Keyboard Shortcuts..............................................................................19 3.7. Reloading From Disk......................................................................................20 3.8. Multi-Threaded I/O.........................................................................................20 3.9. Printing............................................................................................................20 3.10. Closing Files and Exiting jEdit.....................................................................21 4. Editing Text................................................................................................................23 4.1. Moving The Caret...........................................................................................23 4.2. Selecting Text..................................................................................................24 4.2.1. Rectangular Selection ..........................................................................25 iii 4.2.2. Multiple Selection................................................................................25 4.3. Inserting and Deleting Text.............................................................................26 4.4. Undo and Redo ...............................................................................................26 4.5. Working With Words ......................................................................................27 4.6. Working With Lines........................................................................................28 4.7. Working With Paragraphs ...............................................................................28 4.8. Wrapping Long Lines .....................................................................................29 4.8.1. Soft Wrap.............................................................................................29 4.8.2. Hard Wrap............................................................................................30 4.9. Scrolling..........................................................................................................30 4.10. Transferring Text...........................................................................................31 4.10.1. The Clipboard ....................................................................................31 4.10.2. Quick Copy ........................................................................................32 4.10.3. General Register Commands .............................................................32 4.11. Markers .........................................................................................................33 4.12. Search and Replace.......................................................................................34 4.12.1. Searching For Text.............................................................................34 4.12.2. Replacing Text ...................................................................................35 4.12.2.1. Text Replace............................................................................35 4.12.2.2. BeanShell Replace ..................................................................36 4.12.3. HyperSearch.......................................................................................37 4.12.4. Multiple File Search...........................................................................37 4.12.5. The Search Bar...................................................................................38 4.13. Command Repetition ....................................................................................39 5. Editing Source Code ..................................................................................................41 5.1. Edit Modes......................................................................................................41 5.1.1. Mode Selection ....................................................................................41 5.1.2. Syntax Highlighting.............................................................................41 5.2. Tabbing and Indentation .................................................................................41 5.2.1. Soft Tabs ..............................................................................................42 5.2.2. Automatic Indent .................................................................................43 5.3. Commenting Out Code ...................................................................................44 5.4. Bracket Matching............................................................................................44 5.5. Abbreviations..................................................................................................45 5.5.1. Positional Parameters...........................................................................46 5.6. Folding ............................................................................................................46 5.6.1. Collapsing and Expanding Folds .........................................................48 5.6.2. Navigating Around With Folds............................................................48 5.6.3. Miscellaneous Folding Commands......................................................49 5.6.4. Narrowing ............................................................................................49 iv 6. Customizing jEdit ......................................................................................................51 6.1. The Buffer Options Dialog Box......................................................................51 6.2. Buffer-Local Properties...................................................................................51 6.3. The Global Options Dialog Box .....................................................................52