From the Installers menu, select mambots. In the field "Install directory", enter the folder location (where you unzipped the file) and click Install.
From the Mambots menu, select Site Mambots.
Make sure the plugin "Include Code Listing" is published. If you see a cross in the Published column, just click on it. It will turn into a green tick.
Click on the "Include Code Listing" plugin. On the right-hand side, you will see the Plugin Parameter "Paths to your source codes". This is where you enter the list of allowed paths (for security reason). For example, if you have want to display a php file with the full pathname: c:\sample apps\php\sample1.php. In this box, you will need to enter the path c:\sample apps\php (without the last slash). You may enter multiple paths delimited by commas. And you may use either the forward slash (/) or backward slash (\) for directory path.
From the Extensions menu, select Install/Uninstall. In the field "Install directory", enter the folder location (where you unzipped the file) and click Install.
From the Extensions menu, select Plugin Manager.
Enable the plugin (Include Code Listing) - make sure there is a green tick in the Enabled column.
Click on the "Include Code Listing" plugin. On the right-hand side, you will see the Plugin Parameter "Paths to your source codes". This is where you enter the list of allowed paths (for security reason). For example, if you have want to display a php file with the full pathname: c:\sample apps\php\sample1.php. In this box, you will need to enter the path c:\sample apps\php (without the last slash). You may enter multiple paths delimited by commas. And you may use either the forward slash (/) or backward slash (\) for directory path.
The Simplest Form. Suppose you have a php file with the full pathname: c:\sample apps\php\sample1.php. To display the program in your content item, all you need is to include the following statement:
<?php # sample1.php echo "now = ".date('F j, Y H:i:s')."\n";
for ($i=0; $i<10; ++$i) { print "$i: ".$i*$i."\n"; } ?>
VVIP: In case you missed it above, please make sure that you add the path of filename (in the above example, it's c:\sample apps\php) to the list of allowed paths in the property page of the plugin. Otherwise the program listing will not be displayed.
Syntax Highlighting for PHP only. I used PHP's built-in highlight_string command. As such, the syntax highlighting only applies to .php files. For all other file types, you will only see plain text without syntax highlighting.
Word Wrap. If you have tried PHP's built-in highlight_string command before, you will know that because it uses  , long lines will stay in one whole line. This is undesirable in many cases. The "Include Code Listing" plugin processes any long text and automatically wraps it at the default of column 60.
Specifying the wrap column. The default wrap column is 60. To change this, use the setting wrap_column. Don't forget to put this within square brackets.
Setting the appearance of overall code display. You can use css styles to change the formatting of the overall code display, such as the width, alignment, border, background color, etc. Please make sure that you enclose the styles in single quotes. Within the styles, please use only double quotes if you need to. Don't use any single quote.