• Login
Community
  • Login

Nested CSS

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 112 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.
  • E
    External Usage
    last edited by PeterJones Feb 10, 2025, 2:48 PM Feb 10, 2025, 2:44 PM

    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

    P 1 Reply Last reply Feb 10, 2025, 2:54 PM Reply Quote 0
    • P
      PeterJones @External Usage
      last edited by PeterJones Feb 10, 2025, 4:27 PM Feb 10, 2025, 2:54 PM

      @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
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors