jamesKwen / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

PHP is not formated right #146

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. <pre name="code" class="php"> <?php echo JText::_( 'Gender' ); ?> xyz </pre>

What is the expected output? What do you see instead?
Expected is to see: <?php echo JText::_( 'Gender' ); ?>
I xyz

What version of the product are you using? On what operating system?
1.5.1 On CentOS

Please provide any additional information below.
Using it in Wordpress 1.7

Original issue reported on code.google.com by euphoria...@gmail.com on 25 Feb 2009 at 2:58

GoogleCodeExporter commented 8 years ago
i am using blogger and having same problem too. is there any solution

Original comment by heisanon...@gmail.com on 5 May 2009 at 3:46

GoogleCodeExporter commented 8 years ago
I'm sort of getting the same problem.  If I added a code such as:
<pre name="code" class="php">
<?php
     $varX = "string";
?>
</pre>

I'd get:
varX = "string";
?>

To go around that, I just added a "\" before the first "?" and "$".  So it 
looks like:

<pre name="code" class="php">
<\?php
     \$varX = "string";
?>
</pre>

It doesn't look too pretty with the "\" in there, but that's the only 
workaround I
could think of to get it semi-working.

Original comment by is300o...@gmail.com on 19 Jul 2009 at 2:34

GoogleCodeExporter commented 8 years ago
I can confirm this bug. Using it in Drupal 6. It's really bad, that codes with 
php tag 
<?php ?> ist not showing correct. Hope this will be fix soon.

Original comment by bitse...@gmail.com on 17 Sep 2009 at 12:25