What are some efficient methods for importing PHP source code into a Word document?

One efficient method for importing PHP source code into a Word document is to use a code syntax highlighter plugin or tool that allows you to copy the code with syntax highlighting intact. Another method is to manually format the code in Word using a monospaced font and color-coding for readability. Additionally, you can use a code snippet feature in Word to insert the PHP code with proper formatting.

<?php
// PHP code snippet to be imported into a Word document
$variable = "Hello, World!";
echo $variable;
?>