e(fx)clipse provides a SmartCode-Editing Framework who can be embedded in fairly any application (not only OSGi)
Integration into OSGi
Basic Control with Syntax Highlighting
To make it easier to define syntax highlighting for any language the smart-code framework uses unlike the Eclipse IDE a declarative language named ldef.
The first step when integrating a syntax highlighting editor into your application is to create a file ending with .ldef (eg java.ldef, ...).