aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/5_FolderStructure.md
blob: 4fc2f8d3c7b67de74c9e35f07c94741229d3c10a (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
# 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.