Ada syntax highlighting

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
mikeysoft
New Member
Posts: 1
Joined: Wed Jun 05, 2013 2:46 am

Ada syntax highlighting

Post by mikeysoft »

Hi, is anyone aware of an Ada syntax highlighter for EDP?

Thanks
Mike
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Ada syntax highlighting

Post by psguru »

Unfortunately, there is none.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Ada syntax highlighting

Post 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.
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Ada syntax highlighting

Post by psguru »

We are aware of these methods, perhaps this will be implemented in a future version.
psguru
PrestoSoft
User avatar
Alexo
Expert Member
Posts: 154
Joined: Fri Oct 22, 2004 10:18 am
Location: Canada

Re: User defined syntax highlighting

Post 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.
JeremyNicoll
Expert Member
Posts: 108
Joined: Sun May 02, 2010 12:00 pm
Location: Edinburgh

Re: Ada syntax highlighting

Post 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.
Post Reply