Joy "syntax" highlighting
cpcogan — 2007-01-07 21:38:49
About the editor described in my previous post:
For Joy "syntax" highlighting, I plan to flag the brackets for lists
and sets, do color-flagging for comments, definitions, strings,
directives, and maybe a basic set of combinators. I might also flag
special comments for documenting functions external to the functions
themselves (documentation that could be automatically scraped out of
the source and used to generate a basic reference for programmers).
One thing I hope to do is make brackets blink in pairs when you move
the mouse cursor over either bracket of a pair, so you can easily tell
where the other bracket is. I'm even considering having a mechanism
whereby all of the required parameters for a function could be flagged
visually, so the reader see instantly know whether he's got all the
required items on the stack. This would be done by including some
information in the definition of a function (probably in a special
comment) that would be accessible to the editor.