Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Crisp editor .kwd file  (Read 7817 times)
David Z.
Posts: 19


« on: December 15, 2009, 03:26:27 pm »

I am using the Crisp text editor to write my programs http://www.crisp.com. It can colorize the source code similar to Studio's editor. It uses .kwd files to define the language syntax. Its mostly just a list of reserved words. The 4gl.kwd file that comes with Crisp is for Ingress Windows 4gl, not I4gl. I can create my own 4gl.kwd file, but before I do so, I thought I would ask if anyone already has one. If not, does anyone know of a list of all the I4gl reserved words such as "while", "if", "select", etc?

Thanks,
David
Reuben B.
Four Js
Posts: 1062


« Reply #1 on: December 15, 2009, 08:03:24 pm »

I am using the Crisp text editor to write my programs http://www.crisp.com. It can colorize the source code similar to Studio's editor. It uses .kwd files to define the language syntax. Its mostly just a list of reserved words. The 4gl.kwd file that comes with Crisp is for Ingress Windows 4gl, not I4gl. I can create my own 4gl.kwd file, but before I do so, I thought I would ask if anyone already has one. If not, does anyone know of a list of all the I4gl reserved words such as "while", "if", "select", etc?

Thanks,
David


Later versions of Genero have the equivalent files to use with the vim text editor.  If you have a look at the files in FGLDIR/lib/*.vim you maybe able to construct a solution from them.

e.g. $FGLDIR/lib/fgl.vim

Quote
" BEGIN GENERATED
syn keyword fglKeyword ABSOLUTE
syn keyword fglKeyword ACCEPT
syn keyword fglKeyword ACTION
syn keyword fglKeyword ACTIONS
syn keyword fglKeyword ADD
syn keyword fglKeyword AFTER
...

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
David Z.
Posts: 19


« Reply #2 on: December 15, 2009, 09:17:34 pm »

I didn't see the file in FGLDIR (maybe my version is too old -- 2.11.16), but I did find /usr/share/vim/vim70/syntax/fgl.vim. on my RHEL 5 server. I assume its the same or similar. That helped a lot.

Thanks
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines