• Login
Community
  • Login

<Style> tag

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
style colouring
5 Posts 3 Posters 2.8k 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.
  • M
    matahombres
    last edited by Oct 31, 2017, 2:28 PM

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

    C 1 Reply Last reply Nov 2, 2017, 1:48 PM Reply Quote 0
    • C
      Claudia Frank @matahombres
      last edited by Nov 2, 2017, 1:48 PM

      @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
      • R
        Ron Tarrant
        last edited by Nov 5, 2017, 10:46 AM

        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).

        C 1 Reply Last reply Nov 5, 2017, 11:38 AM Reply Quote 1
        • C
          Claudia Frank @Ron Tarrant
          last edited by Nov 5, 2017, 11:38 AM

          @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
          • R
            Ron Tarrant
            last edited by Nov 5, 2017, 3:16 PM

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

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