Coda PHP Syntax Color Problem

Discussion in 'Web Design and Development' started by ericegana25, Feb 10, 2012.

  1. ericegana25 macrumors newbie

    Joined:
    Feb 10, 2012
    #1
    Using the coda editor, anything I type inside of the <?php ?> tags is green, so I think it's being read as a comment.

    What's weird is that the "Colors" option under "Preferences" is showing that the syntax highlighting should be working fine. All elements are in their default color settings.

    What's even more weird is that when I open a .php file that was created somewhere else, the syntax highlighting works fine. It's when I create a new file in editor and try to type some php code that it all comes out green.

    Here is an example of some php code (HTML code syntax highlighting is fine) that is coming out green . . .

    <html>
    <head>
    </head>
    <body>
    <div id="content">
    Hello <?php echo "World"; ?>
    </div>
    </body>
    </html>

    Any suggestions?
     
  2. a8ball macrumors newbie

    Joined:
    Aug 26, 2009
    #2
    Close the program and re-open. Does it to me every once in a while I just save the file close and re-open and it works. Hope it works for you.
     

Share This Page