Update code model using editor data instead of data from saved file.

This way isn't necessary to save the file to have the code model up to date.
Highlight constants in bold and Types.