#520 Disable tag matching inside PHP code blocks

Next_major_release
closed
nobody
None
7
2013-10-12
2013-08-24
No

https://sourceforge.net/p/notepad-plus/bugs/4453/

Some languages, like PHP, allow for HTML markup to be mixed with code in the same file. When the caret is inside a block of code (not markup), the program shouldn't be matching tags and highlighting attributes.

Without implementing a real parser for PHP, ASP and JSP it's not possible to determine what is "code" and what is "markup", but the patch should make it a bit better. It fixes the problem in bug 4453, but there are still some pathological cases left, like:

<sometag someattribute =  "<?">
<sometag someattribute =  "?>">
</sometag>
</sometag>
1 Attachments

Discussion

  • Don HO

    Don HO - 2013-09-19

    I don't see the problem even with the bug report.
    Could you give me more detail about this bug?

    Don

     
    • Don HO

      Don HO - 2013-09-19

      OK, I see the problem now.

      Don

       
  • Don HO

    Don HO - 2013-09-19
     
  • Don HO

    Don HO - 2013-09-19
    • status: open --> accepted
    • Priority: 5 --> 7
     
  • Don HO

    Don HO - 2013-10-01
    • Status: accepted --> closed