Prog8 Language Support for VS Code
Syntax highlighting and language support for Prog8, a structured programming language for 8-bit 6502/65c02 microprocessors.

Features
Supported Targets
Prog8 supports these retro computer platforms:
- Commander X16 (65c02 CPU)
- Commodore 64 (6502 CPU)
- Commodore 128 (6502 CPU)
- Commodore PET (limited support)
- Various external configurable targets (Atari 800 XL, Neo6502, NES, etc.)
Example Code
%import textio
%zeropage basicsafe
main {
sub start() {
txt.print("Hello, Prog8!\n")
ubyte counter
for counter in 0 to 10 {
txt.print_ub(counter)
txt.nl()
}
return
}
}
Installation
From VSIX
- Download the
.vsix file from the releases
- In VS Code, open Command Palette (
Ctrl+Shift+P)
- Run "Extensions: Install from VSIX..."
- Select the downloaded file
From Source
- Clone this repository
- Run
npm install (if using npm scripts)
- Press F5 to launch Extension Development Host
- Open a
.p8 file to see syntax highlighting
Package as VSIX
npm install -g @vscode/vsce
vsce package
File Associations
This extension automatically associates with .p8 file extensions.
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
License
This extension is released under the MIT License.
Enjoy coding in Prog8! 🎮
| |