ErikPettersson / moonshineproject

Automatically exported from code.google.com/p/moonshineproject
0 stars 0 forks source link

Consider combining all the syntax-highlighting plugins to one #100

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
One plugin will just load the right parser with the right formats according to 
the file-type, and will also provide an option to manually choose the syntax 
type of an open tab.

This will prevent a lot of the duplication we have now, and make things more 
centralized, it makes sense I reckon, I also imagine that the syntax colors for 
each type should be shared, e.g. the colors for CSS highlighting are now 
controlled separately in CSS files, HTML files and MXML files.

Original issue reported on code.google.com by t.br...@gmail.com on 28 Jun 2010 at 10:53

GoogleCodeExporter commented 8 years ago
Furthermore, it might be a good idea to make the context-switching parser load 
a configuration file from XML or something similar, rather than having to write 
new classes for each new file type. This will make everything much more 
flexible and extensible. Especially if we also change the AS3 parser to a 
context-switcher (a la issue 98), that'd mean all our syntax highlighting will 
be coming from configurable XML files.

Original comment by t.br...@gmail.com on 2 Jul 2010 at 1:42