Eclipse itself (3.4.2) comes with a sample XML editor that implements syntax highlighting. Just create a new plugin project, select "This plugin will contribute to the user interface" and select "No" for the rich client application. The next page of the wizard offers the "Plugin with Editor" template, which is your friend.
It may be too simple to use it as a real template for your task, but it demonstrates how to create colorful editors for text files.
source
share