Community
    • Login

    Nested CSS

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 107 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.
    • External UsageE
      External Usage
      last edited by PeterJones

      Can you please fix highlighting nested css style like :

      div {display: flex;
        a {color: green;
           b {background: red}
        }
      }
      

      It becomes very often used.
      Thanx.

      —

      moderator added code markdown around text; please don’t forget to use the </> button to mark example text as “code” so that characters don’t get changed by the forum

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

        @External-Usage ,

        Notepad++ uses a library called “Lexilla” for doing the lexing. Lexilla has a “testbed” editor called SciTE which shows they have the same problem

        a51ce8b6-9c94-43aa-8498-356479d7781f-image.png

        Per this recent discussion here, there is an open request with the Lexilla team to allow nested CSS (and the & selector). Until Lexilla is able to fix their library to handle nested CSS properly, Notepad++ will not be able to; once they release a version with that fix, and once Notepad++ updates to that version, then it will be fixed in Notepad++… but since the request has been active since 2023, I am doubtful it will happen any time soon. Sorry.

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