oberddan / syntaxhighlighter

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

php code is not parsed as text on .php file #176

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write some php code on a .php file
2. enclose php code with the <script /> method 
3. run .php file through mamp local server

What code did you write ?
<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="author" href="humans.txt">
        <title>Untitled</title>
        <!--styles-->
        <link rel="stylesheet" href="css/reset.css">
        <link rel="stylesheet" href="css/styles.css">
        <link type="text/css" rel="stylesheet" href="css/sh/shCoreDefault.css"/>
        <!--scripts-->

    </head>
    <body>
        <!--Sidebar-->
        <aside>
            <?php include "aside.php"; ?>
        </aside>
        <!--End Sidebar-->

        <!--Main Content-->
        <main>
            <h1>Include</h1>
            <p class="summary"> The include (or require) statement takes all the text/code/markup that exists in the specified file and copies it into the file that uses the include statement. Including files is very useful when you want to include the same PHP, HTML, or text on multiple pages of a website.</p>

            <script type="syntaxhighlighter" class="brush: php"><![CDATA[
                <?php echo"fdfdfd";?>
            ]]></script>

        </main>
        <!--End Main Content-->
        <script type="text/javascript" src="js/sh/shCore.js"></script>
        <script type="text/javascript" src="js/sh/shBrushPhp.js"></script>
        <script type="text/javascript">SyntaxHighlighter.all();</script>
        <script src="js/main.js"></script>
    </body>
</html>

What is the expected output? What do you see instead?
expected output: <?php echo"fdfdfd";?>
what i see: fdfdfd

What version of the product are you using? On what operating system?
syntaxhighlighter_3.0.83
Mavericks

Please provide any additional information below.
i will include a screenshot

Original issue reported on code.google.com by brsas...@gmail.com on 30 Sep 2014 at 2:03

Attachments: