Hello guys, I'm currently working on MtheCharm: a code editor for the Nintendo DS that tries to feel like PyCharm. Dark theme, syntax colours, and those coloured squiggly underlines that tell you you've messed up. All of it on a 256×192 screen.
(screenshots here: top screen with squiggles, find bar, splash screen)
Why I think it's fun
You open it, tap out some Python on the touch keyboard, and save it as a real .py file on your SD card. Then you carry that file to your PC and it just works. No special format, no conversion.
What it can do
For the programmers among you
It's plain C on devkitPro/libnds. The editor core, the Python lexer and the checker don't touch libnds at all, so I build and test them on a PC first: a test harness drives the whole UI (touches, buttons, typing), renders both screens to images, and runs under AddressSanitizer / UBSan. Only main.c knows it's a DS. Drawing goes to a RAM back buffer and gets copied to VRAM during vblank, which is what finally cured the flicker. Everything is software-rendered in 15-bit colour with a hand-picked 5×8 font.
Source is on the page, so feel free to poke around, steal the lexer, or tell me what I did wrong.
What it can't do (yet)
- It's an editor only. It doesn't run your Python
- ASCII only for now (no Cyrillic), lines up to 127 characters
- Needs an SD card (DLDI/FAT) to save and open files
What's next
Autosave, file management (rename / delete / new folder), go-to-line. And I keep wondering about a tiny interpreter for a Python subset, so you could run simple scripts right on the DS. Would anybody actually want that?
Works on real hardware and in melonDS.
Download + source: https://metvux.itch.io/mthe-charm-ds
Feedback, bug reports and feature ideas are all very welcome. What would you want from a code editor on a DS?