# Dev/Config files/Examples

From XOWA: the free, open-source, offline wiki application

## Changing a keyboard shortcut

- Open xowa.gfs in a text editor.
- Search for `'app_exit'` (Note the single quotes).

  The following line should be found:
    `.set('app_exit' , 'mod.c+key.q')`
  This line defines Control+Q as the shortcut to exit the application.

- Change the shortcut from Control+Q to Control+Z by changing `key.q` to `key.z`.

  When you are done you should have the following line (note the red highlight):
    `.set('app_exit' , 'mod.c+key.z')`

- Save xowa.gfs and close the file.
- Run XOWA. Press Control+Z to exit the application.

## Changing the HTML view

- Open xowa.gfs in a text editor.
- Search for the line `.page_read_(`

  The following lines define the HTML used for the "Read" tab.
  For now, let's add a "Hello World!"

- Scroll down about 20 lines. You will see the following line:

    `<div id="siteSub">From XOWA:....` .

- Add a "Hello World!" right before "From XOWA:". When you are done you should have the following line (note the red highlight):

    `<div id="siteSub">Hello World! From XOWA:....` .

- Save xowa.gfs and close the file.
- Run XOWA. Note the "Hello World!" text at the top of the page.

### XOWA

- Main page
- Screenshots
- Download XOWA
- Download wikis

### Getting started

- Requirements
- Installation
- Simple Wikipedia
- English Wikipedia
- Other Wikipedias

### Android

- Setup

### Help

- About
- Contents
- Media
- Feedback

### Blog

- Current

### Links

- Wikimedia dumps
- XOWA @ archive.org
- English Wikipedia

### Donate

- archive.org
- Wikipedia