Page 1 of 1

Ada syntax highlighting

Posted: Thu Jun 06, 2013 2:53 am
by mikeysoft
Hi, is anyone aware of an Ada syntax highlighter for EDP?

Thanks
Mike

Re: Ada syntax highlighting

Posted: Thu Jun 06, 2013 6:05 am
by psguru
Unfortunately, there is none.

Re: Ada syntax highlighting

Posted: Thu Jun 06, 2013 10:30 pm
by MSpagni
Why not allow users to define their syntax higlight rules for whatever file format they want?

Other programs solved the problem using syntax description files in a specific directory.
Each (text) file specify to which file extensions apply it, which are the keywords, how do detect comments and so on.

Something like also GeSHi (http://qbnz.com/highlighter/) does.

Re: Ada syntax highlighting

Posted: Fri Jun 07, 2013 6:04 am
by psguru
We are aware of these methods, perhaps this will be implemented in a future version.

Re: User defined syntax highlighting

Posted: Wed Mar 17, 2021 6:42 pm
by Alexo
Revisiting the thread to add my vote for user-defined syntax highlighting.
It could be done with an XML/JSON/INI file to classify various language elements using lists of values or regexps.

Re: Ada syntax highlighting

Posted: Thu Mar 18, 2021 7:16 am
by JeremyNicoll
Arbitrary syntax highlighting would be great! It's useful if it's not limited just to programming languages - ie not constrained just to concepts like variable naes, procedure names, builtin functions, what's a number, commenting, program structure etc. It's also useful if it can be used to colour arbitrary formats of data files, log files etc.

Colouring aside, do any file-compare programs go further and compare based on the elements identified by the syntax-colouring scheme? I realise that word/token-based comparisons, already breaking lines up by spaces, parentheses, punctuation etc would eg show a difference in two lines if they contained differing variable names, but there might be situations where syntax-aware comparisons add more detail.