In the context of PHP code highlighting, what are the best practices for combining text and code snippets within a string?

When combining text and code snippets within a string in PHP, it is best practice to use double quotes for the string to allow for variable interpolation and escape sequences. This ensures that the code snippets within the string are properly highlighted by code editors and IDEs that support PHP syntax highlighting.

$text = "Here is a code snippet: <?php echo 'Hello, World!'; ?>";
echo $text;