This is a basic text editor built from scratch using C++ and the Raylib library. This editor utilizes a Piece Table data scructure for efficient text manipulation.
- File Operations: Open, Save, Save As.
- Editing: Copy, Paste, Undo, Redo.
- Navigation:
- Move the cursor using the Arrow Keys.
- Select text by holding Shift while moving the cursor with Arrow Keys.
- Scroll through the text using the Mouse Wheel.
You can compile the editor yourself using make
.
- Prerequisites: Ensure you have a C++ compiler (like g++) and
make
installed. You also need the Raylib library development files set up correctly for your system. - Clone the repository:
git clone https://github.com/matteoppet/Text-editor.git cd repository_name
- Build:
This will generate an executable file (e.g.,
make
editor.exe
) in the project directory.
A pre-compiled executable for Windows is available on the GitHub Releases page.
This project uses the following excellent libraries:
- Raylib - For graphics and input handling.
- Tiny File Dialogs - For native open/save file dialogs.
Contributions are welcome! Feel free to open an issue or submit a pull request if you have suggestions or improvements.