FAQ  •  Register  •  Login

Vim syntax file for ZX BASIC

<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Thu Jun 17, 2010 7:09 pm

Vim syntax file for ZX BASIC

I use the Vim editor a lot; well, it's the only one I use :). I wrote a Vim syntax file for ZX BASIC. Maybe it can be useful for someone else.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Thu Jun 17, 2010 9:36 pm

Re: Vim syntax file for ZX BASIC

programandala.net wrote:I use the Vim editor a lot; well, it's the only one I use :). I wrote a Vim syntax file for ZX BASIC. Maybe it can be useful for someone else.

So do I :!: :!: :!:
Thanks a lot! I always wanted to create a vim syntax file but don't know how to. :oops:
<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Thu Jun 17, 2010 10:39 pm

Re: Vim syntax file for ZX BASIC

boriel wrote:I always wanted to create a vim syntax file but don't know how to. :oops:


This is the second one I've written. The first one was for Ace Forth. In both cases I copied the syntax file of the most similar language and then modified it. That's how I learned a bit the syntax of the syntax files :) I don't fully understand it yet.
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Fri Jun 18, 2010 8:16 am

Re: Vim syntax file for ZX BASIC

Just a idea: How about creating a ZXBC links page with useful "external links" to this syntax file, TommyGun or to this: http://www.speccy.org/wiki/programacion/basic without the need to search through the forum?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Jun 18, 2010 8:18 am

Re: Vim syntax file for ZX BASIC

LCD wrote:Just a idea: How about creating a ZXBC links page with useful "external links" to this syntax file, TommyGun or to this: http://www.speccy.org/wiki/programacion/basic without the need to search through the forum?

This could be in the Wiki or even in this sub-forum, as a permanent sticked announce. Basically in the "Archives" Page, or creating a new entry in the main page (it's edition-locked, sorry). Basically, a list of *external resouces* on ZX Basic. What do you think? :roll:
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Fri Jun 18, 2010 8:54 am

Re: Vim syntax file for ZX BASIC

boriel wrote:This could be in the Wiki or even in this sub-forum, as a permanent sticked announce. Basically in the "Archives" Page, or creating a new entry in the main page (it's edition-locked, sorry). Basically, a list of *external resouces* on ZX Basic. What do you think? :roll:

Basicaly a sticky forum thread in this sub-forum is fine too, I think. But "external ressources" on zxbc download page (http://www.boriel.com/wiki/en/index.php ... IC:Archive) is my favourite. You can place it for example below Sample programs or below development version. Its because most people who want to download the compiler, want also to download some ressources for it like editor syntax file, IDE or examples.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Fri Jun 18, 2010 11:38 am

Re: Vim syntax file for ZX BASIC

LCD wrote:But "external ressources" on zxbc download page (http://www.boriel.com/wiki/en/index.php ... IC:Archive) is my favourite. You can place it for example below Sample programs or below development version. Its because most people who want to download the compiler, want also to download some ressources for it like editor syntax file, IDE or examples.


You're right, but I suggest a new page called "External resources" and keep "Download" for the ZX BASIC own files only . I think it's tidier, especially when the resources list grows and it has to be arranged into sections; another advantage is to keep people from tinkering with the ZX BASIC download links. And another important advantage is semantic: not all "external resources" are downloadable; in fact they will be external links to downloadable (or not) resources. Of course a link to "External resources" should be in the "Download" page.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Jun 18, 2010 11:41 am

Re: Vim syntax file for ZX BASIC

I also prefer programandala's point of view. I will create a new "External Resources" page (this evening, today is Friday :P :!: ), and everybody can add things there.
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Fri Jun 18, 2010 12:37 pm

Re: Vim syntax file for ZX BASIC

boriel wrote:I also prefer programandala's point of view. I will create a new "External Resources" page (this evening, today is Friday :P :!: ), and everybody can add things there.

I agree with this.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Sat May 24, 2014 5:19 pm

Re: Vim syntax file for ZX BASIC

I've improved and updated the Vim syntax file for ZX BASIC. The block comments are not highlighted, I still don't understand why. Beside, I've tried to highlight Z80 code inside ASM zones, following the Vim documentation. It works partially: the ASM END is not recognized, I don't know why. Anyway, without block comments and Z80, the current version is better than the 2010 version.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Mon May 26, 2014 11:31 am

Re: Vim syntax file for ZX BASIC

Hey, thanks :!:

Will check it ASAP ;-)

Return to How-To & Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO