Community
    • Login

    How can I specify the priority of styles in stylers.xml?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 139 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.
    • J
      juyoung9653
      last edited by

      I want to either allow nesting like UserDefineLang or set priorities. Although I defined python’s magic methods in substyle1, it gets overwritten by DEF NAME.

      Alan KilbornA 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @juyoung9653
        last edited by

        @juyoung9653

        Because you couldn’t bother to explain, "Python Magic methods are the methods starting and ending with double underscores ‘__’ "

        1 Reply Last reply Reply Quote 0
        • Alan KilbornA
          Alan Kilborn @juyoung9653
          last edited by Alan Kilborn

          @juyoung9653 said in How can I specify the priority of styles in stylers.xml?:

          in substyle1, it gets overwritten by DEF NAME.

          Presume that by “substyle1” you mean “USER KEYWORDS 1” ?
          Otherwise, be clearer, because I see no “substyle1” anywhere.

          It seems to be working for me, in N++ 8.7.5:

          4e5768e9-b4e3-4ad1-9379-419948d99340-image.png

          I think I’d notice if it were using the “DEF NAME”, as that is a radically different color:

          6f306248-2b16-4863-8806-de56c56ccc4f-image.png

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