Skip to content

A clean, lightweight, and intelligent code editor built from scratch in Python (PyQt5). Includes syntax highlighting, dark/light themes, and line numbers.

License

Notifications You must be signed in to change notification settings

m4noj/smart-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Code Editor

A clean, lightweight, and intelligent code editor built from scratch in Python (PyQt5).
Designed for elegance, clarity, and performance — crafted for learning, creativity, and innovation.

python


✨ Overview

A clean, lightweight, and intelligent code editor built from scratch in Python (PyQt5). Includes syntax highlighting, dark/light themes, and line numbers. Designed to be minimal, elegant, and extensible – a personal project to learn and explore GUI development, syntax highlighting, lexers, and editor design.

  • Furthermore, it lays the foundation for advanced features like autocomplete and AI-assisted coding.


🧭 Features

File Management

  • Open, Edit, and Save files with ease
  • File Type Detection (Python, JavaScript, HTML, C/C++, Java, etc.)
  • Basic Shortcuts (Ctrl+S, Ctrl+N, Ctrl+O)

Beautiful Interface

  • Dark & Light Themes (toggle support)
  • Current-line highlighting and custom color palettes
  • Designed for focus and simplicity

Coding Essentials

  • Syntax highlighting (supports Python as of now)
  • Real-time file stats (line, column, word, character count)
  • Line numbers
  • Keyboard shortcuts for faster workflow

Screenshots / Previews

Live Demo

Smart Editor (Live Demo)

Dark Theme (Default)

Main Windows (Dark Theme)

Light Theme

Light Theme


Tech Stack

  • Python 3.10+
  • PyQt5 (GUI framework)
  • Custom syntax highlighter (highlighter/lexer.py)
  • Modular architecture for editor, themes, and future extensions

🚀 Getting Started

1. Clone the repository

git clone https://github.com/m4noj/smart-editor.git
cd smart-editor

2. Install dependencies

pip install -r requirements.txt

3. Run the editor

python main.py

Future Roadmap

  • Autocomplete & Intelligent Code Hints
  • Integrated Terminal (QProcess / QTermWidget)
  • Sidebar & Multitab support
  • Code Snippets & Templates
  • Multi-tab Editing
  • More language-specific syntax highlighters


About

A clean, lightweight, and intelligent code editor built from scratch in Python (PyQt5). Includes syntax highlighting, dark/light themes, and line numbers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages