Documentation/XHP Code Snippets for KDE Editors

KDE text editor engine (KTextEditor) contains a code snippet helper that insert text (code) fragments in the file being edited.

https://www.app-addons.org/browse/cat/213/ord/latest/

KTextEditor is used in KDE's Kate and KDevelop editors.

Download and install to get XHP code snippets to simplify LibreOffice Help files editing

Advantages

 * Automatic generation of unique IDs of paragraphs and other elements that requires ID unicity.
 * Saves typing time
 * Potentially reduce typing errors.



Installation

 * 1) Quit Kate or KDevelop applications
 * 2) Download this file: [[Media:XHP.xml.zip]]
 * 3) Unzip and move it to  $HOME/.local/share/ktexteditor_snippets/data/
 * 4) Restart Kate or KDevelop
 * 5) Enable code snippets in Kate or KDevelop

Usage

 * Place the cursor in the location where the code snippet is to be inserted
 * Double click on the desired code snippet.
 * Fill the fields indicated in color. Use Tab and Shift Tab keys to move from field to field and backward.
 * When all fields are edited, press ESC to move cursor to the end of the snippet.

Note:
 * You can add, customize or remove snippets
 * You can assign a keyboard shortcut to insert the snippet. Edit the snippet and assign a keyboard shortcut.

NewXHP
Creates a new XHP page.

Usage:


 * 1) Create a new file
 * 2) Save it in the right place (<- Important !!!)
 * 3) Double click in the NewXHP code snippet
 * 4) The path is automatically inserted
 * 5) fill the topic and title fields

   page_ttile /text/schart/myTestFile.xhp

DocHeading
Insert a section with a page title (Heading 1) wrapped in a link, bookmarks and bookmark values entries

 command name  ahelp text

TableFull
Insert a 3C x 2L table with pre-filled cell. The first row is a tablehead row and the second is a tablecontent row

Edit the fields and use TableRow and TableCell snippets to add rows and cells