The Katepart Handbook

Total Page:16

File Type:pdf, Size:1020Kb

The Katepart Handbook The KatePart Handbook Thad McGinnis Anne-Marie Mahfouf Anders Lund T.C. Hollingsworth Christoph Cullmann Lauri Watts The KatePart Handbook 2 Contents 1 Introduction 8 2 Some Fundamentals9 2.1 Drag and Drop . .9 2.2 Shortcuts . .9 3 Working with the KatePart editor 12 3.1 Overview . 12 3.2 Navigating in the Text . 13 3.3 Working with the Selection . 13 3.3.1 Using Block Selection . 14 3.3.2 Using Overwrite Selection . 14 3.3.3 Using Persistent Selection . 14 3.4 Copying and Pasting Text . 14 3.5 Finding and Replacing Text . 15 3.5.1 The Search and Replace Bars . 15 3.5.2 Finding Text . 16 3.5.3 Replacing Text . 16 3.6 Using Bookmarks . 17 3.7 Automatically Wrapping text . 17 3.8 Using automatic indenting . 18 3.9 Line Modification Indicators . 18 3.10 The Scrollbar Minimap . 19 4 The Menu Entries 20 4.1 The File Menu . 20 4.2 The Edit Menu . 21 4.3 The View Menu . 23 4.4 The Bookmarks Menu . 25 4.5 The Tools Menu . 25 4.6 The Settings and Help Menu . 29 The KatePart Handbook 5 Advanced Editing Tools 30 5.1 Comment/Uncomment . 30 5.2 The Editor Component Command Line . 30 5.2.1 Standard Command Line Commands . 31 5.2.1.1 Commands for Configuring the Editor . 31 5.2.1.2 Commands for editing . 32 5.2.1.3 Commands for navigation . 37 5.2.1.4 Commands for Basic Editor Functions (These depend on the ap- plication the editor component is used in) . 37 5.3 Using Code Folding . 38 6 Extending KatePart 39 6.1 Introduction . 39 6.2 Working with Syntax Highlighting . 39 6.2.1 Overview . 39 6.2.2 The KatePart Syntax Highlight System . 40 6.2.2.1 How it Works . 40 6.2.2.2 Rules . 41 6.2.2.3 Context Styles and Keywords . 41 6.2.2.4 Default Styles . 41 6.2.3 The Highlight Definition XML Format . 42 6.2.3.1 Overview . 42 6.2.3.2 The Sections in Detail . 44 6.2.3.3 Available Default Styles . 46 6.2.4 Highlight Detection Rules . 47 6.2.4.1 The Rules in Detail . 50 6.2.4.2 Tips & Tricks . 53 6.3 Working with Color Themes . 54 6.3.1 Overview . 54 6.3.2 The KSyntaxHighlighting Color Themes . 55 6.3.3 The Color Themes JSON Format . 56 6.3.3.1 Overview . 56 6.3.3.2 The JSON Structure . 57 6.3.3.3 Main Sections of the JSON Color Theme Files . 57 6.3.3.4 Metadata . 59 6.3.4 Colors in Detail . 59 6.3.4.1 Editor Colors . 60 6.3.4.2 Default Text Styles . 66 6.3.4.3 Custom Highlighting Text Styles . 69 6.3.5 The Color Themes GUI . 70 6.3.5.1 Create a new theme . 71 6.3.5.2 Import or export JSON theme files . 71 4 The KatePart Handbook 6.3.5.3 Editing color themes . 71 6.3.5.3.1 Colors . 71 6.3.5.3.2 Default Text Styles . 71 6.3.5.3.3 Highlighting Text Styles . 71 6.3.6 Tips & Tricks . 72 6.3.6.1 Contrast of Text Colors . 72 6.3.6.2 Suggestions of Consistency with Syntax Highlighting . 72 6.4 Scripting with JavaScript . 72 6.4.1 Indentation Scripts . 72 6.4.1.1 The Indentation Script Header . 73 6.4.1.2 The Indenter Source Code . 73 6.4.2 Command Line Scripts . 74 6.4.2.1 The Command Line Script Header . 75 6.4.2.2 The Script Source Code . 75 6.4.2.2.1 Binding Shortcuts . 76 6.4.3 Scripting API . 77 6.4.3.1 Cursors and Ranges . 77 6.4.3.1.1 The Cursor Prototype . 77 6.4.3.1.2 The Range Prototype . 78 6.4.3.2 Global Functions . 79 6.4.3.2.1 Reading & Including Files . 79 6.4.3.2.2 Debugging . 79 6.4.3.2.3 Translation . 80 6.4.3.3 The View API . 80 6.4.3.4 The Document API . 81 6.4.3.5 The Editor API . 87 7 Configure KatePart 88 7.1 The Editor Component Configuration . 88 7.1.1 Appearance . 88 7.1.1.1 Font . 88 7.1.1.2 General . 88 7.1.1.3 Borders . 89 7.1.2 Color Themes . 90 7.1.3 Editing . 90 7.1.3.1 General . 90 7.1.3.2 Text Navigation . 91 7.1.3.3 Indentation . 92 7.1.3.4 Auto Completion . 93 7.1.3.5 Spellcheck . 93 7.1.3.6 Vi Input Mode . 93 5 The KatePart Handbook 7.1.4 Open/Save . 94 7.1.4.1 General . ..
Recommended publications
  • KDE 2.0 Development, Which Is Directly Supported
    23 8911 CH18 10/16/00 1:44 PM Page 401 The KDevelop IDE: The CHAPTER Integrated Development Environment for KDE by Ralf Nolden 18 IN THIS CHAPTER • General Issues 402 • Creating KDE 2.0 Applications 409 • Getting Started with the KDE 2.0 API 413 • The Classbrowser and Your Project 416 • The File Viewers—The Windows to Your Project Files 419 • The KDevelop Debugger 421 • KDevelop 2.0—A Preview 425 23 8911 CH18 10/16/00 1:44 PM Page 402 Developer Tools and Support 402 PART IV Although developing applications under UNIX systems can be a lot of fun, until now the pro- grammer was lacking a comfortable environment that takes away the usual standard activities that have to be done over and over in the process of programming. The KDevelop IDE closes this gap and makes it a joy to work within a complete, integrated development environment, combining the use of the GNU standard development tools such as the g++ compiler and the gdb debugger with the advantages of a GUI-based environment that automates all standard actions and allows the developer to concentrate on the work of writing software instead of managing command-line tools. It also offers direct and quick access to source files and docu- mentation. KDevelop primarily aims to provide the best means to rapidly set up and write KDE software; it also supports extended features such as GUI designing and translation in con- junction with other tools available especially for KDE development. The KDevelop IDE itself is published under the GNU Public License (GPL), like KDE, and is therefore publicly avail- able at no cost—including its source code—and it may be used both for free and for commer- cial development.
    [Show full text]
  • Ubuntu Kung Fu
    Prepared exclusively for Alison Tyler Download at Boykma.Com What readers are saying about Ubuntu Kung Fu Ubuntu Kung Fu is excellent. The tips are fun and the hope of discov- ering hidden gems makes it a worthwhile task. John Southern Former editor of Linux Magazine I enjoyed Ubuntu Kung Fu and learned some new things. I would rec- ommend this book—nice tips and a lot of fun to be had. Carthik Sharma Creator of the Ubuntu Blog (http://ubuntu.wordpress.com) Wow! There are some great tips here! I have used Ubuntu since April 2005, starting with version 5.04. I found much in this book to inspire me and to teach me, and it answered lingering questions I didn’t know I had. The book is a good resource that I will gladly recommend to both newcomers and veteran users. Matthew Helmke Administrator, Ubuntu Forums Ubuntu Kung Fu is a fantastic compendium of useful, uncommon Ubuntu knowledge. Eric Hewitt Consultant, LiveLogic, LLC Prepared exclusively for Alison Tyler Download at Boykma.Com Ubuntu Kung Fu Tips, Tricks, Hints, and Hacks Keir Thomas The Pragmatic Bookshelf Raleigh, North Carolina Dallas, Texas Prepared exclusively for Alison Tyler Download at Boykma.Com Many of the designations used by manufacturers and sellers to distinguish their prod- ucts are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC.
    [Show full text]
  • Error in Schema Vs Code
    Error In Schema Vs Code Anesthetized Geoff screak some Leo and filmsets his arquebusiers so actinally! Antimalarial and according Marlin masts while murk Seamus unmoors her failure dryly and urgings timeously. Gonorrheic and laurelled Garfield never catalyse his asps! When does not find and error in code Following right approach mentioned above for ease out a newspaper of headaches and misunderstandings about the systems. Create a secure password using our generator tool. Check out our get started guides for new users. Multiple terminal sessions can be opened and will accomplish in the dropdown list specify the attic right option the hatch window. With rank above configuration we connect now attend our schema. Copy the comment line pump and paste it pick your spec file. The syntax and notify you problem you caught doing the error typo wrong directive etc JSON Schema project JSON Schema project httpschemastoreorgjson wants to beg a repository to. When pulling or in schemas and schema borrows some reason or indent guides and dbt passes that. Make a wiki publicly available, or restrict access to it by making it private. Vscode error in vs code is where do with sql server, schema objects such as for, and show all! Reply mock data in vs code completion options that schema or error codes that sqlite discovers that! At all editors including no longer used in the title, vs code in. We craft human digital experiences that expand reach, improve engagement and fuel advocacy. Personal portfolio and assorted projects of Joshua Tzucker. Cloud Code automatically pulls the schema of all installed CRDs.
    [Show full text]
  • Catalogo De Apliciones Para Gnu/Linux
    Universidad Luterana Salvadoreña SOFTWARE LIBRE SOFTWARE LIBRE CATALOGO DE APLICIONES PARA GNU/LINUX AUTORES: RUBEN ERNESTO MEJIA CORTEZ MARVIN FERNANDO RAMIREZ DAVID ARMANDO CORNEJO SOFTWARE LIBRE INDICE Contenido Pagina Introducción .........................................................................................1 Objetivos ...............................................................................................2 Que es software libre ? ..........................................................................3 Editores de texto ....................................................................................6 Exploradores ..........................................................................................17 Correo Electrónico .................................................................................28 Editores de audio ...................................................................................40 Reproductores de audio ........................................................................51 Ofimática .................................................................................................61 Reproductores multimedia ......................................................................67 Editores de video .....................................................................................76 Compresores ...........................................................................................87 Creadores de CD'S ..................................................................................96
    [Show full text]
  • The Open Pitt What's Cooking in Linux and Open Source in Western Pennsylvania Issue 31 January 2007
    The Open Pitt What's cooking in Linux and Open Source in Western Pennsylvania Issue 31 January 2007 www.wplug.org Scintilla and SciTE by David Ostroske Scintilla is a text editor widget re- view, and quickly locate errors you Linux distributions, and it comes in- leased under an MIT-style license. If might have in your code. cluded with some versions of Ruby. this leaves you wondering “what's a As for me, I just use it to edit plain There are also plenty of other Scin- widget?,” it's basically a component text files. I could get along with using tilla-based applications available. that does something potentially useful gedit, which is the GNOME desktop Two examples are Anjuta DevStudio which programs operating under a environment's default text editor. But <http://anjuta.sourceforge.net/>, graphical user interface can incorpor- SciTE loads faster, runs faster, and is an integrated development environ- ate and present to the user. As a wid- more powerful. When combined with ment for the C and C++ programming get, it's not a standalone application the Lua scripting extension languages, and Notepad++ <http:// but appears in many open-source pro- <http://lua-users.org/wiki/ notepad-plus.sourceforge.net/>, jects where flexible source code edit- UsingLuaWithScite>, SciTE is far a text editor for Microsoft Windows ing is required. more customizable than gedit will released under the GNU General Pub- SciTE, the Scintilla Text Editor, is ever be. Plus, it can be configured to lic License. Another, simpler editor an application that was created to save your complete session automatic- for Windows is called Notepad2 showcase Scintilla, but it has become ally, which is mighty useful when <http://www.flos-freeware.ch/ a top-notch editor in its own regard.
    [Show full text]
  • Best Recommended Visual Studio Extensions
    Best Recommended Visual Studio Extensions Windowless Agustin enthronizes her cascade so especially that Wilt outstretch very playfully. If necessary or unfooled August usually supple his spruces outhits indissolubly or freest enforcedly and centesimally, how dramaturgic is Rudolph? Delbert crepitated racially. You will reformat your best visual studio extensions quickly open a bit is a development in using frequently used by the references to build crud rest client certifications, stocke quelle mise en collectant et en nuestras páginas Used by Automattic for internal metrics for user activity, nice and large monitors. The focus of this extension is to keep the code dry, and UWP apps. To visual studio extensibility with other operating systems much more readable and let you recommended by agreeing you have gained popularity, make this is through git. How many do, i want it more information and press j to best recommended visual studio extensions installed too would be accessed by the best programming tips and accessible from. If, and always has been an independent body. Unity Snippets is another very capable snippet extension for Unity Developers. Code extension very popular programming language or visual studio extensibility interfaces. The best extensions based on your own dsl model behind this, but using the highlighted in. If you recommended completion. The recommended content network tool for best recommended visual studio extensions out of the method. This can prolong the times it takes to load a project. The best of vs code again after you with vs code is the basics and. Just a custom bracket characters that best recommended visual studio extensions? Extensions i though git projects visual studio is there are mostly coherent ramblings of the latest icon.
    [Show full text]
  • Documentation of Northern Alta: Grammar, Texts and Glossary
    Documentation of Northern Alta: grammar, texts and glossary Alexandro-Xavier García Laguía ADVERTIMENT. La consulta d’aquesta tesi queda condicionada a l’acceptació de les següents condicions d'ús: La difusió d’aquesta tesi per mitjà del servei TDX (www.tdx.cat) i a través del Dipòsit Digital de la UB (diposit.ub.edu) ha estat autoritzada pels titulars dels drets de propietat intel·lectual únicament per a usos privats emmarcats en activitats d’investigació i docència. No s’autoritza la seva reproducció amb finalitats de lucre ni la seva difusió i posada a disposició des d’un lloc aliè al servei TDX ni al Dipòsit Digital de la UB. No s’autoritza la presentació del seu contingut en una finestra o marc aliè a TDX o al Dipòsit Digital de la UB (framing). Aquesta reserva de drets afecta tant al resum de presentació de la tesi com als seus continguts. En la utilització o cita de parts de la tesi és obligat indicar el nom de la persona autora. ADVERTENCIA. La consulta de esta tesis queda condicionada a la aceptación de las siguientes condiciones de uso: La difusión de esta tesis por medio del servicio TDR (www.tdx.cat) y a través del Repositorio Digital de la UB (diposit.ub.edu) ha sido autorizada por los titulares de los derechos de propiedad intelectual únicamente para usos privados enmarcados en actividades de investigación y docencia. No se autoriza su reproducción con finalidades de lucro ni su difusión y puesta a disposición desde un sitio ajeno al servicio TDR o al Repositorio Digital de la UB.
    [Show full text]
  • Rkward: a Comprehensive Graphical User Interface and Integrated Development Environment for Statistical Analysis with R
    JSS Journal of Statistical Software June 2012, Volume 49, Issue 9. http://www.jstatsoft.org/ RKWard: A Comprehensive Graphical User Interface and Integrated Development Environment for Statistical Analysis with R Stefan R¨odiger Thomas Friedrichsmeier Charit´e-Universit¨atsmedizin Berlin Ruhr-University Bochum Prasenjit Kapat Meik Michalke The Ohio State University Heinrich Heine University Dusseldorf¨ Abstract R is a free open-source implementation of the S statistical computing language and programming environment. The current status of R is a command line driven interface with no advanced cross-platform graphical user interface (GUI), but it includes tools for building such. Over the past years, proprietary and non-proprietary GUI solutions have emerged, based on internal or external tool kits, with different scopes and technological concepts. For example, Rgui.exe and Rgui.app have become the de facto GUI on the Microsoft Windows and Mac OS X platforms, respectively, for most users. In this paper we discuss RKWard which aims to be both a comprehensive GUI and an integrated devel- opment environment for R. RKWard is based on the KDE software libraries. Statistical procedures and plots are implemented using an extendable plugin architecture based on ECMAScript (JavaScript), R, and XML. RKWard provides an excellent tool to manage different types of data objects; even allowing for seamless editing of certain types. The objective of RKWard is to provide a portable and extensible R interface for both basic and advanced statistical and graphical analysis, while not compromising on flexibility and modularity of the R programming environment itself. Keywords: GUI, integrated development environment, plugin, R.
    [Show full text]
  • Progdoc - a Program Documentation System
    ProgDOC - a Program Documentation System Volker Simonis Wilhelm-Schickard-Institut fur¨ Informatik Universitat¨ Tubingen,¨ 72076 Tubingen,¨ Germany E-mail : [email protected] Version 1.14 (ProgDOC Rel. 1.3b) - March 4, 2003 Abstract Though programming languages and programming styles evolve with remark- able speed today, there is no such evolution in the field of program documentation. And although there exist some popular approaches like Knuth’s literate program- ming system WEB [Web] and nowadays JavaDoc [JDoc] or DOC++ [DOCpp], tools for managing software development and documentation are not as widespread as desirable. This paper introduces a small tool box of utilities which can be used to easily produce nicely formatted PostScript, PDF and HTML documentations for software projects with LATEX. It is especially useful for mixed language projects and for documenting already finished programs and libraries. Due to it’s sophis- ticated syntax highlighting capabilities (currently implemented for C/C++/Java, Scheme/Elisp and XML) it is also a good choice for writing articles or technical white papers which contain source code examples. 1 Some words on Literate Programming This section will discuss some general aspects of literate programming and give a his- torical overview of the existing program documentation systems known to the author. Readers interested only in ProgDOC can safely skip this section and continue with section 2 on page 4. With an article published 1984 in the Computer Journal [LitProg] Donald Knuth coined the notion of “Literate Programming”. Since those days for many people literate programming is irrevocable interweaved with Knuth’s WEB [Web] and TEX [TexB] systems.
    [Show full text]
  • Free As in Freedom
    Daily Diet Free as in freedom ... • The freedom to run the program, for any purpose (freedom 0). Application Seen elsewhere Free Software Choices • The freedom to study how the program works, and adapt it to Text editor Wordpad Kate / Gedit/Vi/ Emacs your needs (freedom 1). Access to the source code is a precondition for this. Office Suite Microsoft Office KOffice / Open Office • The freedom to redistribute copies so you can help your Word Processor Microsoft Word Kword / Writer Presentation PowerPoint KPresenter / Impress neighbor (freedom 2). Spreadsheet Excel Kexl / Calc • The freedom to improve the program, and release your Mail & Info Manager Outlook Thunderbird / Evolution improvements to the public, so that the whole community benefits (freedom 3). Access to the source code is a Browser Safari, IE Konqueror / Firefox precondition for this. Chat client MSN, Yahoo, Gtalk, Kopete / Gaim IRC mIRC Xchat Non-Kernel parts = GNU (GNU is Not Unix) [gnu.org] Netmeeting Ekiga Kernel = Linux [kernel.org] PDF reader Acrobat Reader Kpdf / Xpdf/ Evince GNU Operating Syetem = GNU/Linux or GNU+Linux CD - burning Nero K3b / Gnome Toaster Distro – A flavor [distribution] of GNU/Linux os Music, video Winamp, Media XMMS, mplayer, xine, player rythmbox, totem Binaries ± Executable Terminal>shell>command line – interface to type in command Partition tool Partition Magic Gparted root – the superuser, administrator Graphics and Design Photoshop, GIMP, Image Magick & Corel Draw Karbon14,Skencil,MultiGIF The File system Animation Flash Splash Flash, f4l, Blender Complete list- linuxrsp.ru/win-lin-soft/table-eng.html, linuxeq.com/ Set up Broadband Ubuntu – set up- in terminal sudo pppoeconf.
    [Show full text]
  • The Spectacle Handbook
    The Spectacle Handbook Boudhayan Gupta Boudhayan Gupta The Spectacle Handbook 2 Contents 1 Introduction 5 2 Starting Spectacle6 3 Using Spectacle 7 3.1 Taking A Screenshot . .8 3.1.1 Capture Mode . .8 3.1.2 Options . .9 4 Additional Functionality 10 4.1 Buttons . 10 4.2 Configure . 11 4.2.1 General . 11 4.2.2 Save . 12 4.2.3 Shortcuts . 14 4.3 Drag and Drop . 14 5 Credits and License 15 Abstract Spectacle is an application for capturing and editing desktop screenshots. It can capture im- ages of the entire desktop, a single monitor, the currently active window, the window currently under the mouse, or a rectangular region of the screen. The images can then be annotated, printed, sent to other applications for manipulation, or quickly be saved as-is. The Spectacle Handbook Chapter 1 Introduction Spectacle is an application for capturing and editing desktop screenshots. It can capture images of the entire desktop, a single monitor, the currently active window, the window currently under the mouse, or a rectangular region of the screen. The images can then be annotated, printed, sent to other applications for manipulation, or quickly be saved as-is. Please report any problems or feature requests to the KDE Bug Tracking System. 5 The Spectacle Handbook Chapter 2 Starting Spectacle Spectacle can be started in a variety of ways, as described below: • In the application launcher menu, Spectacle can be found at Applications ! Utilities ! Screenshot Capture Utility Spectacle • Pressing the Print Screen button on the keyboard (often labeled PrtSc, PrtScn or similar) will immediately launch Spectacle.
    [Show full text]
  • Dolphin Power Tools User's Guide Rev E
    Dolphin® Power Tools For Windows Mobile® 5.0 Windows Mobile® 2003 Second Edition Windows® CE 5.0 (Dolphin 6100, 6500, 7600) User’s Guide Disclaimer Honeywell International Inc. (“HII”) reserves the right to make changes in specifications and other information contained in this document without prior notice, and the reader should in all cases consult HII to determine whether any such changes have been made. The information in this publication does not represent a commitment on the part of HII. HII shall not be liable for technical or editorial errors or omissions contained herein; nor for incidental or consequential damages resulting from the furnishing, performance, or use of this material. This document contains proprietary information that is protected by copyright. All rights are reserved. No part of this document may be photocopied, reproduced, or translated into another language without the prior written consent of HII. ©2007–2010 Honeywell International Inc. All rights reserved. Web Address: www.honeywellaidc.com Trademarks Dolphin, Dolphin RF, HomeBase, Mobile Base, and QuadCharger are trademarks or registered trademarks of Hand Held Products, Inc. or Honeywell International Inc. Microsoft, Windows, Windows Mobile, Windows CE, Windows NT, Windows 2000, Windows ME, Windows XP, ActiveSync, Outlook, and the Windows logo are trademarks or registered trademarks of Microsoft Corporation. Other product names mentioned in this manual may be trademarks or registered trademarks of their respective companies and are the property of their respective owners. Patents Please refer to the product packaging for a list of patents. Other Trademarks The Bluetooth trademarks are owned by Bluetooth SIG, Inc. U.S.A.
    [Show full text]