Community

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

    2 colorations syntaxique au sein d'un même fichier, possible ?

    Help wanted · · · – – – · · ·
    3
    5
    875
    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.
    • amkp gamy
      amkp gamy last edited by

      Bonjour et merci au dev de notepad++ !

      Je me sers régulièrement de cet éditeur pour du code PHP, CSS,JS.

      Est-il possible de configurer notepad++ pour avoir 2 type de colorations syntaxique au sein d’un même ficher ?

      Un exemple tout simple: une page HTML avec une balise <style type=“text/css”>

      La coloration serait active pour tout le HTML
      ET
      active à l’intérieur de la balise <style> pour du CSS


      Hello and thank you to the notepad ++ dev!

      I use this editor regularly for PHP, CSS, JS code.

      Is it possible to configure notepad ++ to have 2 types of syntax highlighting within the same file?

      A simple example: an HTML page with a tag <style type = “text / css”>

      Syntax highlighting would be active for HTML
      AND
      active inside the <style> tag for CSS

      Ekopalypse andrecool-68 2 Replies Last reply Reply Quote 2
      • Ekopalypse
        Ekopalypse @amkp gamy last edited by

        @amkp-gamy

        I thought this is already the case for html, isn’t it?

        1 Reply Last reply Reply Quote 0
        • amkp gamy
          amkp gamy last edited by

          @Ekopalypse
          What do you mean ?

          Ekopalypse 1 Reply Last reply Reply Quote 1
          • andrecool-68
            andrecool-68 @amkp gamy last edited by

            @amkp-gamy
            If one file has CSS and HTML …then the backlight will only work one)

            1 Reply Last reply Reply Quote 0
            • Ekopalypse
              Ekopalypse @amkp gamy last edited by

              @amkp-gamy

              The html lexer is one of the few, if not the only one, lexers which uses multiple lexers
              under the hood. It styles html, js, perl, vbs, python and I assumed it does CSS as well
              but obviously this is not the case. At least with the current used scintilla version but
              I don’t know if a newer scintilla version would have CSS integrated into html lexer.

              Sorry, but I don’t think that there is a way to make two builtin lexers working at the same time. What one could try is to use a technique like described here but to be honest I haven’t much experience in css to understand its basic layout meaning. If you want to discuss this further let me know - will be online gain in about 7-8 hours.

              1 Reply Last reply Reply Quote 3
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors