ZX-BASIC Syntax for Visual Studio Code

This is where most of us started. Classic Spectrum basic.

Moderator: Programming Moderators

User avatar
jsj
Posts: 19
Joined: Tue May 30, 2017 3:42 am

ZX-BASIC Syntax for Visual Studio Code

Post by jsj » Thu Jun 22, 2017 10:48 pm

I've made an extension, for Visual Studio Code, to add syntax highlighting for Sinclair ZX Spectrum BASIC. Files with extension .bas will use this extension if installed. Also supports Boriel's ZX Basic extensions.

More info and installation instructions here.

Also the source code is on this repository of Github, licensed under GPL v3.0.

User avatar
emook
Posts: 70
Joined: Mon May 29, 2017 6:55 pm

Re: ZX-BASIC Syntax for Visual Studio Code

Post by emook » Thu Jun 22, 2017 11:01 pm

Great stuff! Thanks for sharing.
---------
ZXorDIE
http://zxbasic.uk/NextBuild NextBuild
http://zxbasic.uk ZXBD Snapshot uploader
http://zxbasic.uk/db/0 ZXBasic Online Database

User avatar
boriel
Posts: 10
Joined: Wed Jun 07, 2017 9:10 pm

Re: ZX-BASIC Syntax for Visual Studio Code

Post by boriel » Fri Jun 23, 2017 9:05 am

This is awesome. At this moment it supports syntax highlighting.
I hope I can contribute to this extension in the future :roll: (specially to help in adding syntax checking and code inspection)

See attached screenshot
Attachments
vstudio-zxb.png
Sample screenshot
vstudio-zxb.png (64.14 KiB) Viewed 2679 times

User avatar
jsj
Posts: 19
Joined: Tue May 30, 2017 3:42 am

Re: ZX-BASIC Syntax for Visual Studio Code

Post by jsj » Fri Jun 23, 2017 11:54 am

boriel wrote:
Fri Jun 23, 2017 9:05 am
This is awesome. At this moment it supports syntax highlighting.
I hope I can contribute to this extension in the future :roll: (specially to help in adding syntax checking and code inspection)
That would be awesome! Code Inspection to detect defined variables and/or functions... and also to show contextual help while you type statements, operators, etc... :shock:

User avatar
jsj
Posts: 19
Joined: Tue May 30, 2017 3:42 am

Re: ZX-BASIC Syntax for Visual Studio Code

Post by jsj » Mon Jul 03, 2017 6:47 am

Renamed repository to avoid confusion: https://github.com/jsanjose/zxbasic-vscode/

User avatar
boriel
Posts: 10
Joined: Wed Jun 07, 2017 9:10 pm

Re: ZX-BASIC Syntax for Visual Studio Code

Post by boriel » Thu Jul 06, 2017 11:33 am

So did I! :mrgreen:

nitrofurano
Posts: 5
Joined: Mon Aug 21, 2017 7:08 pm

Re: ZX-BASIC Syntax for Visual Studio Code

Post by nitrofurano » Mon Aug 21, 2017 9:34 pm

i confess i’m not a visual studio user, but for sure i’d love having such syntax highlight on Pluma, Gedit, Vim, Emacs... ;)

User avatar
boriel
Posts: 10
Joined: Wed Jun 07, 2017 9:10 pm

Re: ZX-BASIC Syntax for Visual Studio Code

Post by boriel » Tue Aug 29, 2017 9:47 am

nitrofurano wrote:
Mon Aug 21, 2017 9:34 pm
i confess i’m not a visual studio user, but for sure i’d love having such syntax highlight on Pluma, Gedit, Vim, Emacs... ;)
This is not Visual Studio, but "Visual Studio Code". Despite its name, they're different (related) tools. Visual Studio Code is free and available for Mac / Windows / Linux 8-)

Eratosthenes
Posts: 226
Joined: Mon May 29, 2017 8:17 pm

Re: ZX-BASIC Syntax for Visual Studio Code

Post by Eratosthenes » Wed Dec 27, 2017 6:05 pm

Hi jsj,

any news so far?

I'm a somehow experienced Visual Studio user (since VB 4, Visual Studio -6, .Net up to 4, I'm a pro MS user (MS certified... :D )) and Sinclair Basic fan.

Is there something new about your Extension?

I'd like to have all the new commands (bank switching, sprites, et al.) available in your tool.

THNX 4 info.
der Eratosthenes

User avatar
jsj
Posts: 19
Joined: Tue May 30, 2017 3:42 am

Re: ZX-BASIC Syntax for Visual Studio Code

Post by jsj » Wed Dec 27, 2017 9:43 pm

I can add those additional commands easily that, I suppose, are from the version of BASIC implemented for the Next. But, where can I get a manual or documentation of that BASIC extensions?
Eratosthenes wrote:
Wed Dec 27, 2017 6:05 pm
I'd like to have all the new commands (bank switching, sprites, et al.) available in your tool.

Post Reply