Source-formatter

Alexander Dymo alexander.dymo at gmail.com
Mon Jan 11 15:34:34 UTC 2010


> Am Montag 11 Januar 2010 00:40:02 schrieb Andreas Pakulat:
> > On 10.01.10 23:07:30, David Nolden wrote:
> > > Every language has a list of "supported mimetypes" in its configuration
> > > file. Cannot we just access that information, without loading the
> > > language supports?
> >
> > IIRC thats not whats needed from the plugin. The problem is that the
> > "language name" is only available once its loaded. The mimetype is
> > indeed stored in the .desktop file and can be acessed that way.
> 
> Hmm if we can read X-KDevelop-SupportedMimeTypes, why cannot we read X-
> KDevelop-Language in the same way? With those 2, we would have enough
> information to do the whole mapping.
I'm with David on this one.


Btw, I'd say that we shouldn't advertize source formatting for languages that 
we don't support. So, reading language names and mimetypes from available 
language plugin's desktop files should be perfectly enough.




More information about the KDevelop-devel mailing list