This is a GNU Emacs major mode for FreeBASIC. I'm sure the other FB IDEs are nice, but no Emacs user wants to use a language-specific IDE.
I wrote the original indentation routines about a decade ago and have slowly been building it up into a full mode written from scratch, which I'm finally posting, having finally cleaned it up and fixed bugs. Still needs more work, but it's functional and fairly bug-free (except missing keywords). Updates will be posted here.
I just discovered that there was an existing freebasic-mode posted sometime after I started. I think mine is largely more complete and less buggy, except I don't highlight all the builtin functions/keywords. More comments in the github README.
Features:
- Syntax highlighting
- Declared variable names are highlighted, thanks to parsing of variable declarations and sub/function declarations and header lines instead of simplistic keyword highlighting
- Indentation
- Full support for lines continued with `_`
- Amount of indentation is controlled by the `fb-indent-level` variable
- Commenting/uncommenting, and `fill-paragraph` support for comments
- C-c C-h to lookup a symbol (default under point) in the manual in a web browser tab (note, doesn't work for many builtins)
- Adds `compile-mode` support for `fbc` error/warning messages
- `beginning-of-defun`/`end-of-defun` (C-M-a/C-M-e) support
- C-M-j to split the current line at point (possibly in middle of a string or comment), adding a _ line continuation and indenting.