Jump to content
Muxe Inc Forums
Sign in to follow this  
dandv

.php Files Interpreted Specially?

Recommended Posts

dandv    0

Place this code in a.php:

<html>
<head></head>

<?php
    // some comment here
?>

</html>

 

Edit a.php in NDN 2.31.1909. Notice that the comment isn't highlighted.

Remove the <head></head> line and save the file.

Open the file again. Notice the comment is correctly highlighted.

 

Are PHP files scanned for HTML tags by any chance?

 

Thanks,

Dan

Share this post


Link to post
Share on other sites

Hi Dan,

 

I have quickly checked, and couldn't find a specific reason for this behaviour.

So, I have to put it on my long todo list. :)

 

All the best,

Stefan / AH

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×