format codes of server-side