Format a function.