Community
    • Login

    <style>tag don't highlighting in php file in <html> tag why??

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 477 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • djeydjey95D
      djeydjey95
      last edited by

      <style>tag don’t highlighting in php file in <html> tag why??

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @djeydjey95
        last edited by PeterJones

        @djeydjey95 ,

        There was a brief interlude of one or two versions where that wasn’t working.

        You might want to update to v8.4.2, which includes the fix for that issue.

        bdd231fb-36e7-4a53-a63b-5c40c3e2a7b8-image.png

        ----
        Addendum: issues #11585 and #11602 were broken in v8.4 and fixed in v8.4.1, and the screenshot above shows <style> tag being highlighted in v8.4.2

        PeterJonesP 1 Reply Last reply Reply Quote 1
        • PeterJonesP
          PeterJones @PeterJones
          last edited by

          …

          unless what you are talking about is you want the “body” and “backround”, etc, to have different colors.

          That ability has never existed in the HTML/PHP/ASP parser as far as I am aware, so if that is what you were wanting, it doesn’t yet exist. For example, here’s similar code in the HTML parser of v8.3.3:
          355f9fd2-55d3-42f0-b96c-369139e38885-image.png

          I now assume that what you’re wanting is for it to render the style similar to the way CSS is highlighted, but just inside the <style> tag in the HTML or PHP (or similar):
          655eb683-15b9-4e2d-8a95-a37bf82156f7-image.png

          That would require a feature request, because we fellow users in the Community forum cannot add features to the codebase. Further, I don’t think a feature request for Notepad++ will be sufficient: Notepad++ uses the Scintilla Lexilla lexer for handling the syntax highlighting, so I believe you would have to convince Scintilla/Lexilla to add CSS highlighting inside their HTML/PHP/ASP parser, and they would have to implement it, then you would have to lobby the Notepad++ developers to update to the newer version of Scintilla that contains the updated parser.

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors