This repository was archived by the owner on Jun 22, 2026. It is now read-only.
Repository navigation
v0.1.1: Refactor syntax highlighting and line number features
Codus v0.1.1 – Plugin System & Syntax Highlighting Improvements
This update introduces the first basic plugin system and some internal improvements to syntax highlighting.
✅ New Features
-
Basic Plugin System
-
Dynamically load plugins from the plugins/ folder.
-
Plugins can define an onRun function to execute custom code when running scripts.
-
Each plugin includes a project.json for metadata (name, function, event).
⚡ Enhancements
-
Code refactor for readability and maintainability.
-
Dynamic function calling from plugin modules using getattr and importlib.
-
Better error handling when plugins or functions are missing.
EXAMPLE PLUGIN
Structure:
plugins
|- INeedThis
| |- __init__.py (empty)
| |- ineedthis.py (with function)
| |- project.json
JSON:
{
"name": "INeedThis",
"exec-file": "ineedthis",
"exec": "main",
"event": "onRun"
}ineedthis.py
import pygame , pathlib
pygame.init()
def main(): pygame.mixer.Sound(pathlib.Path(__file__).resolve().parent / "ineedthis.mp3").play()(PLUGIN IS IN SOURCE FILES)