"<?php" doesn't seem to work correctly in codeblocks

nicholas.alipaz - October 27, 2008 - 00:42
Project:Markdown filter
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I am not sure where the issue is, but whenever I use <?php in a codeblock it seems to mess some things up.

Example:

<?php
    $zip
= new tar_file("public_html/zip/zip.tar");
   
$zip->set_options(array('basedir' => "../..", 'overwrite' => 1, 'level' => 1));
   
$zip->add_files("public_html");
   
$zip->create_archive();
    if (
count($zip->errors) > 0)
        print (
"Errors occurred."); // Process errors here
   
?>

with the tabs at the front as noted in markdown syntax documentation, returns (displays as follows):
set_options(array('basedir' => "../..", 'overwrite' => 1, 'level' => 1));
    $zip->add_files("public_html");
    $zip->create_archive();
    if (count($zip->errors) > 0)
        print ("Errors occurred."); // Process errors here
    ?>

*note: it seems even this forum is removing the first tab from before my php tag. Line 1 of the example. There is a tab there, I promise.

 
 

Drupal is a registered trademark of Dries Buytaert.