Programming tools / Source code edition |
If you are using the vim editor, automatic code completion and syntax highlighting is supported by fglcomp and fglform compilers.
In order to use auto completion with vim, you need at least vim version 7 with the Omni Completion feature.
To get the benefit of this feature with the vim editor, do this:
autocmd Filetype fgl setlocal omnifunc=fglcomplete#Complete autocmd Filetype per setlocal omnifunc=fglcomplete#Complete syntax on au BufNewFile,BufRead *.per setlocal filetype=per
You can now use automatic code completion; open a .4gl or .per file, start to edit the file, and when you are in vim insert mode , press Ctrl-X followed by Ctrl-O to get a list of language elements to complete the instruction syntax or expression.
For more details about vim, see http://www.vim.org.