WinFBE on GitHub (December 6, 2016)

Started by Paul Squires, December 06, 2016, 08:02:28 PM

Previous topic - Next topic

Paul Squires

Codetip popups for builtin FreeBASIC keywords added to GitHub.
Paul Squires
PlanetSquires Software

Paul Squires

Made a few more changes. Codetips now show for subs/functions present in all loaded documents in the editor (user written functions). I am also now closing the Compile Output window if it is currently active and a subsequent compile produces no warnings/errors.

I am now ready to deal with the Windows API codetips and other sub/functions found in other #INCLUDE'd files.

This approach seems like it might be the most efficient approach:
(1) Prebuild a codetips file (codetips_winapi.ini) (actually, maybe one for ansi functions and another for unicode).
(2) Parse source code files during loading for all #INCLUDES. Bypass any Windows includes because they would have already been prebuilt. Parse any other #INCLUDEs such as Jose's AFX includes.
(3) When "(" is pressed, search builtin FB keywords first, then subs/functions of all loaded documents, and finally the Windows API codetips (if previous parsing showed that Windows API files were present in the source. Display the ANSI or UNICODE version depending on if #DEFINE UNICODE was present in the source).

Sounds pretty do-able.  :)


Paul Squires
PlanetSquires Software