A lightweight, cross-platform code editor built with C++17.
LitePad is a lightweight code editor with the following features:
- Lightweight: Pursuit of ultimate performance and lightweight design
- Cross-platform: Support for Windows, macOS, Linux and other platforms
- Plugin-based: Functionality extension through plugin system
- Highly configurable: Support for rich configuration options
- C++17 compatible compiler
- CMake 3.16 or higher
- Platform-specific dependencies:
- Windows: Visual Studio 2019+ or MinGW-w64
- macOS: Xcode 12+ with Command Line Tools
- Linux: GCC 7+ or Clang 8+, GTK+ 3.0 development libraries
# Clone the repository
git clone https://github.com/your-username/LitePad.git
cd LitePad
# Create build directory
mkdir build && cd build
# Configure with CMake
cmake .. -DCMAKE_BUILD_TYPE=Release
# Build
make -j$(nproc) # Linux/macOS
# or
cmake --build . --config Release # Cross-platform# From build directory
./bin/LitePad
# Or with a file argument
./bin/LitePad path/to/your/file.txt| Platform | Status | GUI Framework |
|---|---|---|
| Windows | ✅ Supported | Win32 API |
| macOS | ✅ Supported | Cocoa/AppKit |
| Linux | ✅ Supported | GTK+ 3.0 |
LitePad/
├── src/ # Main source code
│ ├── platform/ # Platform-specific implementations
│ │ ├── windows/ # Windows-specific code
│ │ ├── macos/ # macOS-specific code
│ │ └── linux/ # Linux-specific code
│ ├── Editor.cpp # Core editor functionality
│ ├── PluginManager.cpp # Plugin system
│ └── ConfigManager.cpp # Configuration management
├── plugins/ # Plugin headers and implementations
├── config/ # Configuration files
├── docs/ # Documentation
└── tests/ # Test suite
We welcome contributions! Please follow these steps:
- Fork the project
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Follow C++17 standards
- Use consistent code formatting (see
.clang-format) - Write tests for new features
- Update documentation as needed
- Follow conventional commit format
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Pull Requests: GitHub Pull Requests
- ✅ Initial project structure
- ✅ Cross-platform build system
- ✅ Basic editor core implementation
- ✅ Platform-specific window systems
- ✅ Plugin system architecture
- ✅ Configuration management system
- GUI implementation
- Plugin system completion
- Syntax highlighting
- File management
- Advanced editing features
English | 中文