/textadept-xc-basic

XC=BASIC language module for Textadept

Primary LanguageLuaMIT LicenseMIT

XC=BASIC language module for Textadept

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

Installation

  1. Copy lexers/xcbasic.lua to ~/.textadept/lexers/ (Linux and MAC OS) or %userprofile%\.textadept\lexers\ (Windows). If the directory does not exist, create it.

  2. Open the file ~/.textadept/init.lua (Linux and MAC OS) or %userprofile%\.textadept\init.lua (Windows). If it does not exist, create it.

  3. 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"'
    

Usage

  • *.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