added some smarty support and extra emphasis on embedded code (eg smarty, php)