kamalchopra / jsyntaxpane

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

Using EditorKit registerEditorKitForContentType #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I came across the above method which should make registering and even using
the library much easier.  The only downside in my opinion is that now if
you need to use your own lexer, you also need to create a SyntaxKit
implementation.  Mind you, it will be generally just one liner class with a
constructor that calls default SynatxKit with the proper lexer.

When that is done, you can actually use code like:
JEditor.setContentType("text/java")

I have an implementation that works fine, but needs some cleanup and a
clean way to register the various editor kits to the languages.

Any suggestions?

Original issue reported on code.google.com by ayman.al...@gmail.com on 18 Sep 2008 at 12:59

GoogleCodeExporter commented 9 years ago
This is now done in release 0.9.0.

Original comment by ayman.al...@gmail.com on 21 Sep 2008 at 12:31