Improvements to :pprint - constant highlighting and IDE support

:pprint now works in IDE mode, and it highlights Const instances correctly.