QB64/QB64PE Language Support for Visual Studio Code
This extension provides an enhanced syntax highlighting and language support for QB64/QB64PE and related Basic dialects (.bas, .bi, .bm, .inc files) in Visual Studio Code.
Features
- Syntax highlighting for QB64/QB64PE and related Basic dialects (Conforms to QB64 Phoenix Edition v4.0.0 keywords)
- Support for .bas, .bi, .bm, and .inc file extensions
- Custom dark theme optimized for QB64/QB64PE development
- Custom/enhanced highlighting scheme over QB64/pe IDE settings
- Execute either QB64 or QB64pe compilers (must be defined in your PATH)
Requirements
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
Extension Settings
This extension does not add any VS Code settings.
QB64 Enhanced Syntax Highlighting Colors
This table shows the colors used for various syntax elements in the QB64 extension.
Keywords, Support functions, String processing, Error processing, File processing, Image processing, Device processing
Screen
Double quoted strings
Storage and math functions
Graphics and OpenGL
Sound
Control, Conditional & Logical keywords
Numeric constants (Hex, Binary, Octal) (Bold)
Debug keywords and functions
User-defined functions (e.g., SUBs or FUNCTIONs)
Meta commands (Versioninfo, Unstable, Include, etc.) (Bold)
Numeric processing, storage & conversions (Bold)
Comment statements (Bold)
TCP/IP & Memory management keywords (Bold)
This should leave all variables, SUB and FUNCTION names white.
Known Issues
- Using this extension will disable all other extensions. So if you have in your project .json or .md files, the colors used for this extension will be applied to them. For example, markdowm (.md) and C/C++ (.c, .cpp, .h) files, no highlighting will be done.
Release Notes
1.1.3 - Not compiling in Windows
- Updated to put .exe after qb64 and qb64pe for Windows.
- Fixed the issue where the .vscode in workspace wasn't being recreated properly when extension changes.
1.1.2 - Fix for missing compiler function
- Updated to create the workspace .vscode directory to enable compiling option.
1.1.1 - Fix for language ID mismatches
- package.json and tasks.json had different language ID's. Fixed them to match.
1.1.0 - Added compiler/run for QB64 & QB64PE
- Added compile & run for both QB64 and QB64pe compilers
- Updated ctrl-F5 to run either compiler (QB64/Qb64pe)
1.0.0 - Initial release of QB64/QB64PE Language Support
- Syntax highlighting for QB64/QB64PE
- Custom dark theme
Usage
- Install the extension
- Open a .bas, .bi, .bm, .inc or .frm file
- The syntax highlighting and language features will be automatically applied
To apply the custom QB64/QB64PE theme:
- Open the Command Palette (Ctrl+Shift+P)
- Type "Preferences: Color Theme"
- Select "QB64 Theme"
To compile and run your program (either or):
- Select either "Run QB64" or "Run QB64pe" in upper right hand corner
- Hit ctrl-F5 and select top center your compiler
Support
For issues, feature requests, or questions, please visit the GitHub repository.
Enjoy!
| |