reback00 7ec910a2fe Updated patches for 10.8 5 vuotta sitten
..
README.md 7ec910a2fe Updated patches for 10.8 5 vuotta sitten
changes.patch 7ec910a2fe Updated patches for 10.8 5 vuotta sitten

README.md

Why patches

Textadept is incredibly short, in terms of source size. The project is committed to keep it under 2000 lines. So there are some features missing. Implementing those features would require to change source code and compile.

This is optional. I will try to keep this project in such a way so that it works without these patches (would continue without certain features).

How to apply patch and compile

Compiling Textadept from source is very easy and fast, given that the codebase is so tiny.

1. Download the source from https://github.com/rgieseke/textadept/releases or from Textadept website. In case you want the latest release version from Textadept website, go under tags and choose a non-beta version, click files beside it, then click zip.

2. Copy the patch file to the main source directory (the same directory where the src folder is.)

3. Open a terminal on that directory and run:

patch -p2 -i changes.patch

4. Install dependencies:

On Arch Linux

sudo pacman -S autoconf automake gettext libtool clang gtk2

On Debian

sudo apt install automake gettext libtool clang libgtk2.0-dev

5. Open the terminal on src directory and run:

make clean-deps
make deps
make
sudo make install

If Textadept is not visible on applications menu, run:

sudo cp *.desktop /usr/share/applications/

On Arch Linux you may see a message saying cannot open /usr/local/share/textadept/core/init.lua: Permission denied. This can be solved by running:

sudo chmod -R 755 /usr/local/share/textadept/core && sudo chmod -R 755 /usr/local/share/textadept/modules

This should install the patched version of Textadept with the extra features.