Community
    • Login

    UDL styles are defunct

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 635 Views 2 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.
    • Sean HardingS Offline
      Sean Harding
      last edited by

      Re: Few problems with User Defined Languages

      I’m trying to create a Z80 assembly syntax highlighter, with colored text representing each instruction’s “category” (data, arithmetic, bit ops, etc.), by using the Stylers within the UDL dialogue. However, Notepad++ has decided that this (left) was what I wanted. Spoiler alert: it is not.
      I will illustrate my point with a snippet of Pokemon Yellow’s code (provided by Retro Game Mechanics Explained), and a mockup (right) of what it’s supposed to look like.
      udl.png

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Sean Harding
        last edited by PeterJones

        @Sean-Harding

        UDL styles are defunct

        I have never found that to be true.

        However, Notepad++ has decided that this (left) was what I wanted. Spoiler alert: it is not.

        Then tell it what colors you actually want for they various keywords, rather than telling it the wrong color.

        You need to change the individual style colors for each keyword group. So whatever keyword# the LD and PUSH keywords are in, you need to choose it’s Styler button, then set the foreground color to green, probably with bold enabled. And whichever keyword# A and AF and C are defined in, you need to set to your aqua/cyan color with the right background (instead of white background). And your number style definition need to be set to magenta rather than white+italic+underline

        I will admit, UDL does have limitations, and there are some things you won’t be able to do. But I believe that the symptoms you showed are easily correctable by you hitting the Styler button and selecting appropriate colors.

        1 Reply Last reply Reply Quote 1

        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