Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vim syntax file for ZX BASIC
#1
I use the Vim editor a lot; well, it's the only one I use Smile. I wrote a Vim syntax file for ZX BASIC. Maybe it can be useful for someone else.
Reply
#2
programandala.net Wrote:I use the Vim editor a lot; well, it's the only one I use Smile. 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:
Reply
#3
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 Smile I don't fully understand it yet.
Reply
#4
Just a idea: How about creating a ZXBC links page with useful "external links" to this syntax file, TommyGun or to this: <!-- m --><a class="postlink" href="http://www.speccy.org/wiki/programacion/basic">http://www.speccy.org/wiki/programacion/basic</a><!-- m --> 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!
Reply
#5
LCD Wrote:Just a idea: How about creating a ZXBC links page with useful "external links" to this syntax file, TommyGun or to this: <!-- m --><a class="postlink" href="http://www.speccy.org/wiki/programacion/basic">http://www.speccy.org/wiki/programacion/basic</a><!-- m --> 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:
Reply
#6
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 (<!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Archive">http://www.boriel.com/wiki/en/index.php ... IC:Archive</a><!-- m -->) 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!
Reply
#7
LCD Wrote:But "external ressources" on zxbc download page (<!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Archive">http://www.boriel.com/wiki/en/index.php ... IC:Archive</a><!-- m -->) 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.
Reply
#8
I also prefer programandala's point of view. I will create a new "External Resources" page (this evening, today is Friday Tongue :!: ), and everybody can add things there.
Reply
#9
boriel Wrote:I also prefer programandala's point of view. I will create a new "External Resources" page (this evening, today is Friday Tongue :!: ), 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!
Reply
#10
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.
Reply
#11
Hey, thanks :!:

Will check it ASAP ;-)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)