fglcm - .4gl , .per remote editor with syntax highlighting and completion
The program is intended to be the backbone of the upcoming fglfiddle web site: One should be able to develop/test Genero programs entirely in the browser. It uses the codemirror editor javascript component to provide a decent editing experience. (See https://codemirror.net) As a side effect it works in GDC too.
Gnu Make, under Linux a C-compiler is required
Call
$ make
to build fglcm, then simply call
$ ./cm demo/foo.4gl
to edit a sample file with GDC.
Call
$ ./cmweb demo/foo.4gl
to edit a sample file in the browser. (The GAS needs to be installed and FGLASDIR needs to be set) Opening a .per file shows the live form preview right hand side.
You don't necessarily need to install fglcm. If you did check out this repository and once called make initially you can call
$ <path_to_this_repository>/cm <your source file>
and it uses the fglcomp/fglrun in your PATH to compile and run fglcm.
Of course you can add also
Set the environment variable FGLFIDDLE to enable the fiddle mode.
$ FGLFIDDLE=1 ./cm main.4gl
to let fglcm run in fiddle mode. It has a main.4gl and a main.per file by default, and shows a special toolbar to allow rapid switching between those 2 files.
requires nodejs and npm in to be able to build codemirror.js in case another code mirror version is wanted
Call
$ make dist
to generate a new codemirror.js from the webcomponents/fglcm/codemirror sub module.