Community
    • Login

    CSS Highlighting Stopped Working

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 397 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.
    • Patrick SkeltonP
      Patrick Skelton
      last edited by

      Can anyone suggest why my Notepad++ syntax highlighting for CSS may have suddenly stopped working?

      I haven’t knowingly changed any setting. I am 99% sure it was working but can’t be 100% sure because it is a while since I used it.

      Any help gratefully received.

      Kind wishes - Patrick

      PeterJonesP mkupperM 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Patrick Skelton
        last edited by

        @Patrick-Skelton ,

        Random guess #1: your file isn’t saved as .css, so Notepad++ is treating it as a plain-text file.

        Random guess #2: you are editing an HTML file with embedded CSS, but don’t have the HTML tags right, so the HTML lexer cannot tell that the section is supposed to be treated as CSS.

        Random guess #3: you have a syntax error in your CSS, so invalid CSS isn’t getting syntax highlighted like valid CSS would be, because it’s not valid CSS.

        1 Reply Last reply Reply Quote 3
        • mkupperM
          mkupper @Patrick Skelton
          last edited by

          @Patrick-Skelton

          As you did not provide screen shots or examples of what you saw, and what you expected to see, we need to use random guessing which does not seem productive for any of us.

          In an earlier post you indicated that you have customized various colors for Notepad++. I’m wondering if it would be beneficial for you to set up a portable bare-bones copy of Notepad++ and to see if syntax highlighting for CSS works in that copy.

          1 Reply Last reply Reply Quote 1
          • Patrick SkeltonP
            Patrick Skelton
            last edited by

            (Unfortunately, I am not allowed to link to usernames, as I have not used the forum before.)

            My apologies - it was not my intention to waste anyone’s time. My question was so general (I had no idea when it started or any steps I might have taken beforehand) that I wasn’t sure what to supply. I accept a screenshot might have been helpful.

            The comment by mkupper about a portable install got me thinking that a normal reinstall probably wasn’t a bad idea and it has fixed it.

            Thank you for the comments.

            Kind wishes - Patrick

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