You have resurrected a really old thread here, so I'm locking it. For anything more on this topic, feel free to open a new one.
These days, you should be able to use:
Using java Syntax Highlighting
// Refresh the values of DOCPROPERTY fields
FieldUpdater updater = new
Parsed in 0.013 seconds, using GeSHi