Community
    • Login

    Nested CSS

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 759 Views 2 Watching
    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 Offline
      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 Online
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors