There is no simple way to do syntax coloring in an Eclipse editor you have to learn the full system.
If you create a new plug-in project one of the examples that Eclipse offers to create for you is an XML editor which contains most of the code you will need.
To create this run New > Project > Plug-in Project
. On the second page of the new plug-in project wizard make sure you have This plug-in will make contributions to the UI
set and Would you like to create a 3.x rich client application
set to No
. The next page of the wizard will then offer to create a plug-in using one of the templates
- choose Plug-in with a editor
.
Study this in conjunction with the help of Eclipse editors