for some reason view.settings().get("syntax") returns garbage for ST2... investigate later