Hi, is anyone aware of an Ada syntax highlighter for EDP?
Thanks
Mike
Ada syntax highlighting
Re: Ada syntax highlighting
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.
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
We are aware of these methods, perhaps this will be implemented in a future version.
psguru
PrestoSoft
PrestoSoft
Re: User defined syntax highlighting
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.
It could be done with an XML/JSON/INI file to classify various language elements using lists of values or regexps.
-
- Expert Member
- Posts: 114
- Joined: Sun May 02, 2010 12:00 pm
- Location: Edinburgh
Re: Ada syntax highlighting
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.
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.