Skip to content
arraynotherePublic

About

A high-performance, cross-platform desktop code editor built with Python (PyQt6/QScintilla).

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Anoterra Project

Anoterra

PyQt6 Version QScintilla Version License: MIT Platform


Overview Overview

  • Core Highlights: Universal syntax lexers, smart auto-completion, dual execution modes (Run & Debug with performance metrics), a Python step debugger with breakpoints, dynamic workspace management, and an IDE-dark minimalist.
  • Supported Platforms: Windows (.exe) and Linux (Binary) officially; macOS via source (see Supported Devices).

Tech Stack Tech Stack & Dependencies

  • GUI Framework: PyQt6 (High-performance native widget rendering)
  • Editor Engine: QScintilla (Advanced text editing, folding, and multi-lexer syntax highlighting)
  • Performance Profiling: psutil (Real-time CPU, RAM, and thread monitoring)
  • Python Formatting: Black (auto-format with Ctrl + D)
  • Debugger: standard-library bdb running in a separate process (no extra dependency)
  • Bundler: PyInstaller (Standalone binary packaging, build-only: requirements-build.txt)

Structure Project Structure

Anoterra/
├── main.py             # Application entry point and cross-platform icon handler
├── requirements.txt    # Runtime dependencies
├── requirements-build.txt # Runtime + PyInstaller (build only)
├── LICENSE             # MIT License
├── anoterra.ico        # Windows application icon bundle
├── anoterra.png        # Linux application icon
├── build.spec          # PyInstaller packaging configuration
├── core/               # Core business logic and engine modules
│   ├── __init__.py     # Core package initializer
│   ├── analysis.py     # Code analysis utilities & Black/built-in formatter
│   ├── debug_worker.py # Debug process: runs the script under bdb (stdlib only)
│   ├── debugger.py     # Debug session (socket protocol, Qt signals)
│   ├── editor.py       # Advanced QScintilla wrapper & auto-formatter
│   ├── languages.py    # Language lexers and configurations
│   ├── runner.py       # Asynchronous execution & performance profiler
│   ├── settings.py     # Application configurations and preferences
│   ├── theme_data.py   # Theme color palettes and configuration
│   ├── version.py      # App version (single source of truth)
│   ├── trust.py        # Workspace Trust helpers (plugins)
│   └── utils.py        # Helper utilities and common functions
├── tests/              # Test suite and smoke testing
│   ├── __init__.py     # Test environment setup (offscreen Qt)
│   ├── test_hardening.py           # Plugin opt-in & path helper tests
│   ├── test_debug_worker.py        # Debugger protocol tests (breakpoints, stepping)
│   ├── test_debugger_ui.py         # Breakpoint markers & Debug tab tests
│   ├── test_trust.py               # Workspace Trust tests
│   ├── test_save_filters.py        # Save As filters, extension fix-up & version tests
│   ├── test_black_format.py        # Black formatting tests
│   ├── test_app_smoke.py           # Application smoke tests
│   ├── test_core_logic.py          # Core logic verification tests
│   ├── test_editor_view_options.py # Editor view options unit tests
│   ├── test_features.py            # Feature integration tests
│   ├── test_html_preview.py        # HTML preview functional tests
│   ├── test_ide_upgrades.py        # IDE enhancement tests
│   └── test_theme.py               # Theme rendering unit tests
└── ui/                 # User interface components and themes
    ├── __init__.py     # UI package initializer
    ├── debug_panel.py  # Debug tab (variables, call stack) & debug controller
    ├── language_icons.py # Colored per-language badge icons for editor tabs
    ├── main_window.py  # Main IDE window, menus, workspace tree, & terminal
    ├── themes.py       # Dark modern professional stylesheet
    └── widgets.py      # Custom user interface widgets

How It Works How It Works

Anoterra is a lightweight modern desktop-based Code Editor & IDE built using Python and PyQt6/QScintilla.

How Does It Work?

  1. Core Editing Engine: Utilizes the high-performance QScintilla library providing real-time syntax highlighting, code folding, smart auto-completion, and responsive line numbering.
  2. Asynchronous Execution & Runner: When executing code (F5 or Ctrl + F5), scripts run without blocking the main user interface. The asynchronous engine in core/runner.py executes external processes (Python, Node.js, C++ compiler) in the background while monitoring system resource usage (CPU & RAM via psutil).
  3. Dynamic Workspace: Provides left-panel project folder workspace management, multi-document file tab navigation, real-time HTML Live Preview (built-in, no JavaScript) plus Open in Browser for full HTML/CSS/JS, and an integrated terminal.

Supported Devices Supported Devices

Anoterra is a desktop-only app (PyQt6). It does not run on phones/tablets or in a browser.

OS / Device Architecture Status How to run
Windows 10 / 11 x64 ✅ Official .exe build or from source
Linux (Ubuntu 20.04+, Debian 11+, Fedora, Arch, glibc ≥ 2.28) x86_64 ✅ Official Binary build or from source
Linux on ARM (Raspberry Pi 4/5 64-bit, ARM laptops) aarch64 ⚠️ From source only pip install -r requirements.txt (needs PyQt6 wheels for your distro)
macOS 11+ (Intel & Apple Silicon) x64 / arm64 ⚠️ From source, not officially tested python main.py
Windows 7 / 8 / 8.1, 32-bit Windows - ❌ Not supported PyQt6 requires Windows 10+ 64-bit
Android / iOS / iPadOS - ❌ Not supported Desktop toolkit only
ChromeOS / Web browser - ❌ Not supported Only via a Linux container (Crostini) from source

Requirements

  • Python: 3.14 or newer (when running from source).
  • RAM: 512 MB minimum, 1 GB+ recommended. Storage: ~100 MB. CPU: dual-core, no dedicated GPU needed.
  • Linux: Qt 6.5+ needs libxcb-cursor0 (sudo apt install libxcb-cursor0). Both X11 and Wayland (XWayland) work.
  • To run code: the matching compiler/interpreter (Python, Node.js, g++, Rust, Go, JDK, etc.) must be installed and available in PATH.

Getting Started Getting Started & Installation

If you want to run, test, or contribute to this repository locally:

Prerequisites

Make sure you have Python (version 3.14 or newer) installed on your system.

Installation Steps

  1. Clone this repository:
    git clone https://github.com/arraynothere/Anoterra.git
    cd Anoterra
  2. Create and activate a virtual environment (optional but recommended):
    python -m venv venv
    # Windows:
    venv\Scripts\activate
    # Linux:
    source venv/bin/activate
  3. Install the required dependencies:
    pip install -r requirements.txt
  4. Run the application:
    python main.py
  5. Run the tests (optional):
    python -m unittest discover -s tests -t .

Building Standalone Executable (.exe / Binary)

To compile Anoterra into a standalone application package without requiring a local Python interpreter:

  1. Install build dependencies (pip install -r requirements-build.txt).
  2. Run the build command using the provided specification file:
    pyinstaller build.spec
  3. A single-file executable is generated at dist/Anoterra (dist/Anoterra.exe on Windows).

Pros and Cons Pros & Cons

Feature Status
Lightweight, starts fast, low RAM usage ✅
Syntax highlighting for 30+ languages ✅
Run code for 15 languages (Python, JS/TS, C/C++, Rust, Go, Java, PHP, Ruby, Lua, Perl, Shell, Batch, PowerShell) ✅
Asynchronous runner with Stop button, timeout & interactive input ✅
Profiler (CPU, memory, threads) ✅
Command palette, Quick Open, find/replace (regex), search in files ✅
Live syntax check (Python/JSON), outline, bookmarks, minimap ✅
Embedded terminal, HTML & Markdown live preview ✅
Open HTML files in your web browser (full JavaScript support) ✅
Language-specific Save As filters and colored language icons on editor tabs ✅
8 built-in color themes, session restore, autosave ✅
Plugin system (opt-in, off by default) with Workspace Trust ✅
Python step debugger: breakpoints, step over/into/out, variables & call stack ✅
Auto-format Python with Black (included in requirements.txt) ✅
Windows & Linux standalone builds ✅
Test suite included ✅
Free & open source (MIT) ✅
Language Server (LSP) / IntelliSense ❌
Debugger extras: watch expressions, conditional breakpoints, debugging other threads ❌
Git integration ❌
Mobile / Web / 32-bit support ❌
Official macOS binary ❌
Compile step of compiled languages can't be cancelled with Stop ❌
Plugins are not sandboxed: once trusted they run with your full privileges ❌

Plugins Plugins

Plugins are disabled by default because they execute arbitrary Python code. Anoterra uses Workspace Trust: a plugin only loads when (1) plugins are enabled and (2) the workspace folder is trusted by you.

  1. Open Settings (Ctrl + ,) → Plugins tab → tick Enable plugins.
  2. Create a plugins/ folder inside your workspace (Anoterra never creates it for you).
  3. Add a .py file (files starting with _ are ignored) exposing register_plugin(window):
    # <workspace>/plugins/hello.py
    def register_plugin(window):
        window.statusBar().showMessage("Hello from plugin!", 3000)
  4. When plugins are found in a folder you have not trusted yet, Anoterra asks "Trust this workspace?". Choose Trust Folder and Load Plugins to load them, or Don't Trust to keep the folder in restricted mode (nothing is executed).

Workspace Trust details

  • Manage it any time with File → Workspace Trust... (trust / remove trust for the current folder).
  • Trust applies to that exact folder only; subfolders do not inherit it.
  • Your home folder and drive roots cannot be trusted as a whole.
  • Plugins load right after you trust the folder or enable them in Settings, and on every startup afterwards. Disabling or removing trust takes effect after a restart.
  • Not a sandbox: after you trust a folder, its plugins can do anything you can do. Trust only sources you know.

HTML Preview HTML Preview & Open in Browser

  • F5 on an .html / .md file opens the built-in preview. It is fast and simple, but it does not run JavaScript and supports only basic CSS (no flexbox/grid).
  • For the real result, use Execution → Open in Browser (Ctrl + Alt + B). The file is saved first (if enabled in Settings) and opened in your default web browser with full HTML, CSS and JavaScript support.

Debugger Debugger (Python)

Ctrl + F5 is still performance profiling. The step debugger is a separate command: Execution -> Start Debugging (Breakpoints).

  1. Put the cursor on a line and press F9 (or Shift + Click the gutter next to the line number) to set / remove a breakpoint (red dot). A normal click on the gutter still toggles a bookmark.
  2. Press Ctrl + Shift + F5. The script runs in a separate process until it hits a breakpoint. With no breakpoints it stops on the first line.
  3. When paused, the current line is highlighted and the Debug tab (bottom panel) shows the variables of the selected frame and the call stack (click a frame to jump to it).
  4. Continue with F8, step over F10, step into F11, step out Shift + F11, stop with Shift + F5.

Notes: Python files only (.py); program input/output works in the Output tab as usual; breakpoints you add or remove while the program is paused are applied when you resume; only the main thread is traced.


Shortcuts Shortcuts

Anoterra provides a comprehensive set of shortcuts to maximize your coding efficiency:

Shortcut Action Description
Ctrl + N Create a new file tab
Ctrl + O Open file dialog
Ctrl + S Save active file
Ctrl + D Auto-formatting
F5 Run script (Asynchronous execution)
Ctrl + F5 Run & Debug (performance profiling)
Ctrl + Alt + B Open current HTML file in the web browser
Ctrl + Shift + F5 Start debugging (breakpoints)
F9 Toggle breakpoint
F8 / F10 / F11 / Shift + F11 Continue / Step over / Step into / Step out
Ctrl + F Find text in editor
Ctrl + H Replace text in editor
Ctrl + Z Undo last action
Ctrl + Y / Ctrl + Shift + Z Redo action
Ctrl + G Goto specific line
F1 Open documentation and help dialog

Theme Theme

  • 8 built-in themes (switch in Settings): Anoterra Dark (default), Anoterra Light, Midnight Blue, Mocha Warm, Paper Warm Light, GitHub, Eclipse, Native macOS.
  • Default (Anoterra Dark) palette:
    • Editor / Window Background: #17191f, Panels: #20232b, Active Line: #252a35
    • Foreground Text: #e6e9ef, Accent: #55b7c9
    • Keywords #66aaff · Strings #e8a27a · Comments #7dbb8c · Numbers #d6c28c · Functions #e2d28e · Types #59c7b2
  • All colors live in core/theme_data.py; adding a theme only needs one more dictionary entry.

Contributors Contributors & Project Team

Role Name Badge
Developer Array arraynothere
Contributor Yokoto Yokoto


Animated Purple Banner
Purple Wave Footer

© 2026 - Anoterra IDE. Developed by @arraydeveloper.

About

A high-performance, cross-platform desktop code editor built with Python (PyQt6/QScintilla).

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages