Community
    • Login

    <Style> tag

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    style colouring
    5 Posts 3 Posters 2.7k 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.
    • matahombresM
      matahombres
      last edited by

      Hi. in the languaje HTML in style tag. Don’t colored source.
      Can this be changed? or it’s impossible?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @matahombres
        last edited by

        @matahombres

        Sorry, but I don’t get what you want.
        Can you make a screenshot and/or provide an example about your issue?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Ron TarrantR
          Ron Tarrant
          last edited by

          Hi Claudia,
          If I might jump in, I think I know what he’s asking because I’ve been looking at something very similar…

          An attempt at clarification:
          A standalone CSS file (i/e. style.css) is properly syntax highlighted by Notepad++, but when a style appears embedded in an HTML file, everything between the <style> and </style> tags appears as default black text.

          Perhaps in order for this to be corrected, CSS needs a second entry in langs/styles just as Javascript has (“javascript” for embedded and “javascript.js” for standalone .js files).

          I was looking into SVG highlighting for the same reason. Of course, for SVG, this would also mean divorcing it from its XML association, but these are topics for another thread (to avoid hijacking).

          Claudia FrankC 1 Reply Last reply Reply Quote 1
          • Claudia FrankC
            Claudia Frank @Ron Tarrant
            last edited by

            @Ron-Tarrant

            thx, if this is the case than it isn’t solvable easily because the software part,
            responsible for coloring (aka the lexer) has to know that it needs to color an additional language. And except for the html lexer, which afaik is the only lexer who has been developed to colorize
            different languages, each lexer treats just a single language. In addition, the lexer is part of scintilla
            which means if one wants to have additional css highlighting it must be reported/asked for at
            scintilla project.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • Ron TarrantR
              Ron Tarrant
              last edited by

              Okay, thanks, Claudia. I’ll look into it at that end.

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