Add constants from general preferences to formatter