This module adds XC=BASIC syntax highlighting, file extension association, compile and build commands to Textadept.
Features:
- Syntax highlighting
- Block folding for
IF ... ENDIF,FOR ... NEXT,WHILE ... ENDWHILE,REPEAT ... UNTIL - Compile command
- Run command
-
Copy lexers/xcbasic.lua to ~/.textadept/lexers/ (Linux and MAC OS) or %userprofile%\.textadept\lexers\ (Windows). If the directory does not exist, create it.
-
Open the file ~/.textadept/init.lua (Linux and MAC OS) or %userprofile%\.textadept\init.lua (Windows). If it does not exist, create it.
-
Add the following lines:
textadept.file_types.extensions.bas = 'xcbasic' textadept.run.run_commands.xcbasic = 'path/to/vice-emu/x64 "%e.prg"' textadept.run.compile_commands.xcbasic = '/path/to/xc-basic/xcbasic64 "%f" "%e.prg"'
- *.bas files will be associated with XC=BASIC syntax
- Use Tools > Compile to compile your program
- Use Tools > Run to run the compiled program in the emulator