Skip to content

Commit e2f856e

Browse files
committed
feat: externalize tokenizer profiles to improve user customization
The primary goal of this change is to allow users to easily customize their own tokenizer sets by moving mappings to external .js files. This decouples custom profiles from the index.html file. Technical changes: - Refactored profile loading from <head> to a synchronized async flow. - Implemented a polling mechanism (setInterval) to wait for CBM_SIGNATURE. - Consolidated initialization (data assignment, rendering, UI setup) into a single finalizeInitialization() function. - Moved default mappings to an external 'Default.js' file, including updated boilerplate code and instructions. - Added automatic BASIC_CODE injection from external scripts into the editor. - Implemented a diagnostic error message in the textarea with Hard Reload (Ctrl+F5) instructions and file path verification (/Flash/html/SPECIAL.js). - Cleaned up redundant logs and synchronized rendering to prevent "tokens is undefined" errors.
1 parent cbb6b83 commit e2f856e

4 files changed

Lines changed: 413 additions & 431 deletions

File tree

html/CBMprgStudio.js

Lines changed: 0 additions & 348 deletions
This file was deleted.

0 commit comments

Comments
 (0)