aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/5_FolderStructure.md
blob: 10fc0d905f060f54a5760526c633d5600572e641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Folder Structure

Because Textadept is mostly written in Lua, these Lua files have to be stored in
an organized folder structure.

## Core

Textadept's core Lua modules are contained in `core/`. These are absolutely
necessary in order for Textadept to run. They are responsible for Textadept's
Lua to C interface, event structure, file input/output, and localization.

## Lexers

Lexer Lua modules are responsible for the syntax highlighting of source code.
They are located in `lexers/`.

## Modules

Editor Lua modules are contained in `modules/`. These provide advanced text
editing capabilities and can be available for all programming languages or
targeted at specific ones.

## Themes

Built-in themes to customize the look and behavior of Textadept are located in
`themes/`.

## User

User Lua modules are contained in a `.textadept` folder in your home directory.
In Linux and Mac OSX, your home directory is the location specified by the
`HOME` environment variable (typically `/home/username` and `/Users/username`
respectively). In Windows, it is the `USERPROFILE` environment variable. This
directory will be denoted as `~/.textadept` from now on in the manual.

## GTK

The `etc/`, `lib/`, and `share/` directories are used by GTK and only appear in
the Win32 and Mac OSX packages.