Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.

v0.1.1: Refactor syntax highlighting and line number features

Choose a tag to compare

@VxidDev VxidDev released this 03 Nov 18:41
· 8 commits to main since this release
b98d732

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)

And this plugin runs "ineedthis.mp3" after clicking the "run" button.

For now, plugin system is limited to only "onRun" event.