Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    <Style> tag

    Help wanted · · · – – – · · ·
    style colouring
    3
    5
    2188
    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.
    • matahombres
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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 Tarrant
          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 Frank 1 Reply Last reply Reply Quote 1
          • Claudia Frank
            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 Tarrant
              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
              Copyright © 2014 NodeBB Forums | Contributors