The batch of includes. My register globals is off so I needed to set $BEAUT_PATH as global or the other includes would choke. All the HFile includes are syntax definitions. Just load up the ones you need.
include_once('include/Beautifier/Init.php');
global $BEAUT_PATH;
include_once('include/HFile/HFile_asm_x86.php');
include_once('include/HFile/HFile_cpp.php');
include_once('include/HFile/HFile_cppheader.php');
include_once('include/HFile/HFile_cppsource.php');
include_once('include/HFile/HFile_asm_x86.php');
include_once('include/Output/Output_HTML.php');
The code snippet (this one handles C++ files):
echo '<pre>';
$highlighter = new Core(new HFile_cpp(), new Output_HTML());
print $highlighter->highlight_text($highlighter->load_file($file));
echo '</pre>';