Re: Editor
- Posted by dcuny Dec 07, 2014
- 6242 views
Very nice!
That means I've got a wish list for it.
- Highlight the line with an error in some way.
- Automatically load/reload ex.err in one of the tabs after running.
- An API for an intellisense list
- An API for hints
Line numbers are good for lots of things, including highlighting errors. You might be able to do this by adjusting the size of the editable portion to make room for a line number column. You'd have to manually draw the line numbers, but you could then support other stuff, like special symbols indicating lines with errors and so forth.
If you're interested, I've got the beginnings of a parser that can get all sorts of useful information from a file - all the functions and procedures, the parameter lists, the declarations, and so on. It doesn't support the full syntax for variable declarations (comma delimited declarations are incomplete), but it's a start. It doesn't handle any of the new namespace stuff, either. I think it could work well as the backend to intellisense or an auto-complete.
- David