format with syntax highlighting