Skip to content

Joe7M/smallbasic.sublimetext.syntaxcoloring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SmallBASIC syntax coloring for Sublime Text

This Sublime Text package adds syntax coloring and indentation rules for the SmallBASIC language (https://smallbasic.github.io/)

Example

Features:

  • Syntax coloring
  • Indentation rules
  • Script execution

Installation

Copy the files in the folder "package" to the User directory in the Sublime Text package folder. The Sublime Text package folder can be open with Sublime Text under Preferences -> Browse Packages.

Script execution

Please edit the file SmallBASIC.sublime-build to configure scipt execution.

Linux

The default file launches sbasicg (SDL-version) in Linux. sbasicg must be in the search path.

{
	"cmd": ["cmd", "/c", "sbasicg", "-r", "$file"],
	"selector": "source.SmallBASIC"
}

Replace sbasicg by sbasic if you want to launch the console version. You can also include the full path.

{
	"cmd": ["cmd", "/c", "sbasic", "$file"],
	"selector": "source.SmallBASIC"
}

Windows

Replace sbasicg by sbasicg.exe. You can include the full path if sbasicg.exe is not in the search path.

{
	"cmd": ["cmd", "/c", "sbasicg.exe", "-r" "$file"],
	"selector": "source.SmallBASIC"
}

About

Syntax highlighting for Sublime Text

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published