PHP syntax highlighting bug? - Post ID 134223


Trial User
6 posts

Hello everyone!

When I write PHP code, I often use HTML code to format the output. The problem is, that sometimes the syntax highlighting for PHP stops working, or even changes to HTML syntax highlighting sometimes :( (See the images below).

I am using CoffeeCup Free HTML editor 2009 on a windows Vista Home Premium computer. I haven´t tried to recreate this on other computers, but the HTML editor keeps doing this over and over again. This error occured on the 2008 Free HTML editor too (I upgraded yesterday).

I have attached some images to help describing this problem.

Working1.png is the code in the editor directly after I´ve opened the document and scrolled down ti the right place. Working2.png shows the same code block after I have pressed enter and then deleted the empty row I created (You can see where he text marker is). The syntax highlighting disappears directly when I insert the empty row using enter.

Have anyone noticed the same problem, or have a solution for this?
Attachments:


Registered User
7 posts

Hi,
Is the highlighting syntax problem also occurring in the 2009 Version?
:)


Trial User
6 posts

It seems so. :(


Registered User
47 posts

Today, I was writing an exercise enbedding php in a html-file ("Ledenbestand.html") and had the same problem in HTML-Editor 2010 build 365.
(see attach: "badsyntax.gif")
At first I thought I'd made a mistake with some syntax and spent a while looking for my error but did not find one.
Then I saved the file and closed it to give it a try to find out where my syntaxerror would be.
The file did work without a problem, so it had to be the wright syntax.
When I reopened the file, everything was just marked fine?
(see attach: "goodsyntax.gif")

I tried to locate where it did go wrong and started over in a new file.
As you can see in attach "good-badsyntax-2", it started good in line 19 tot 22.
Starting on line 23 (with a new if-statement) it went wrong.

Is this a bug or a wrong setting in my editorsettings?
In my "Editor Options" it looks good.
Attachments:


Ambassador
1,707 posts

Have you tried saving the file with a .php extension ?
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/


Registered User
47 posts

david wilson wrote:
Have you tried saving the file with a .php extension ?


Sorry I made a mistake.:(

I Indeed saved the file as: "Ledenbeheer.php"

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.