Do we have something like generic syntax? That is like, if someone builds an editor, people could just re-use that?

It seems as if the editors like staying incompatible to one another. I recall the odd syntax getting
the editor nano to support different file types.

For instance, for nano, to support .rb files, I have code such as this:

# ========================================================================= #
# Escape codes
# ========================================================================= #
color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)."

# ========================================================================= #
# Expression substitution
# ========================================================================= #
color red "#\{[^}]*\}|#[@$]\w+"

Would be great if we could have automagic support for ALL custom programming languages in
a unified way, rather than requiring of people to all write support for a particlar lexer or parser.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/3520/1644448582@github.com>