What are some alternative methods for displaying PHP code in a forum post for better readability?

When displaying PHP code in a forum post, it's important to format it properly for better readability. One common method is to use code tags or a code block to distinguish the code from the rest of the text. Another option is to use syntax highlighting tools that can color code the PHP code for easier understanding. Additionally, you can break down the code into smaller, more manageable chunks and provide explanations or comments to clarify its purpose.

<?php
// Example PHP code snippet with proper formatting for a forum post
echo "Hello, World!";
?>