The KatePart Handbook

Thad McGinnis

Anne-Marie Mahfouf

Anders Lund

T.C. Hollingsworth

developer: Christoph Cullmann
reviewer: Lauri Watts
Revision Frameworks 5.31 (2017-01-24)

KatePart is a fully featured editor component by KDE.


Table of Contents

1. Introduction
2. Some Fundamentals
Drag and Drop
Command Line Options
Specify a File
Specify a file on the Internet
Other Command Line Options
Shortcuts
3. Working with the KatePart editor
Overview
Navigating in the Text
Working with the Selection
Using Block Selection
Using Overwrite Selection
Using Persistent Selection
Copying and Pasting Text
Finding and Replacing Text
The Search and Replace Bars
Finding Text
Replacing Text
Using Bookmarks
Automatically Wrapping text
Using automatic indenting
Line Modification Indicators
The Scrollbar Minimap
4. The Menu Entries
The File Menu
The Edit Menu
The View Menu
The Bookmarks Menu
The Tools Menu
The Settings and Help Menu
5. Advanced Editing Tools
Comment/Uncomment
The Editor Component Command Line
Standard Command Line Commands
Using Code Folding
6. Extending KatePart
Introduction
Working with Syntax Highlighting
Overview
The KatePart Syntax Highlight System
The Highlight Definition XML Format
Highlight Detection Rules
Scripting with JavaScript
Indentation Scripts
Command Line Scripts
Scripting API
7. Configure KatePart
The Editor Component Configuration
Appearance
Fonts & Colors
Editing
Open/Save
Configuring With Document Variables
How KatePart uses Variables
Available Variables
8. Credits and License
9. The VI Input Mode
VI Input Mode
Incompatibilities with Vim
Switching Modes
Integration with Kate features
Supported normal/visual mode commands
Supported motions
Supported text objects
Supported insert mode commands
The Comma Text Object
Missing Features
A. Regular Expressions
Introduction
Patterns
Escaping characters
Character Classes and abbreviations
Alternatives: matching one of
Sub Patterns
Characters with a special meaning inside patterns
Quantifiers
Greed
In context examples
Assertions