Community
    • Login

    Python lexer for matrix multiply operator

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 1.0k Views 1 Watching
    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.
    • Alan KilbornA Online
      Alan Kilborn
      last edited by

      I’ve noticed that the Python 3.5+ matrix multiply operator @ is lex’d oddly in Notepad++:

      Imgur

      Here’s how it appears (like all of the other “operators”) in current SciTE, aka current Scintilla:

      Imgur

      I guess I can accept that it is a Scintilla-out-of-date problem for N++, but it is pretty glaring in Notepad++ the way it looks. Any ideas on why it looks as it does in N++?

      Meta ChuhM 1 Reply Last reply Reply Quote 2
      • Meta ChuhM Offline
        Meta Chuh moderator @Alan Kilborn
        last edited by

        @Alan-Kilborn

        @ uses the decorator styler setting of python, if you want to change it to e.g. non italic and/or black.
        Imgur

        is this what you were searching for ?

        Alan KilbornA 1 Reply Last reply Reply Quote 3
        • Alan KilbornA Online
          Alan Kilborn @Meta Chuh
          last edited by

          @Meta-Chuh said:

          is this what you were searching for ?

          I suppose, but I still want my decorators in decorator style so I’m not going to alter this setting…

          ah, well, some day perhaps the prince will arrive…and I will have both @ as a decorator AND a matrix operator…highlighting well…

          Meta ChuhM 1 Reply Last reply Reply Quote 2
          • Meta ChuhM Offline
            Meta Chuh moderator @Alan Kilborn
            last edited by

            @Alan-Kilborn

            from what i’ve found out so far, this @ prefix highlighting as decorator “would” be fixed since scintilla 3.7.3.
            but notepad++ uses a scintilla base version 3.5.6. with custom modifications.

            1 Reply Last reply Reply Quote 4

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors