Community
    • Login

    Does anyone know why keywords are being highlighted in non keywords? | UDL

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 456 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.
    • cll142C Offline
      cll142
      last edited by

      For reference, this is a UDL and the programming language is ABAP.

      Does anyone know why keywords are being highlighted in non keywords? Can someone please explain?

      For example, the word is idoc_word and the “do” gets highlighted.

      In the folder & default tab, if I keep it in folding code style one the keyword would be highlighted in non keyword. But if I put it in folding code style two, the keyword does not get highlighted in the non key word. So the do won’t be highlighted in idoc_word.

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

        @cll142 said in Does anyone know why keywords are being highlighted in non keywords? | UDL:

        Does anyone know why keywords are being highlighted in non keywords? Can someone please explain?

        Some of the keywords require spaces around them, depending on which box you put the keywords into.

        For example, the word is idoc_word and the “do” gets highlighted.

        In the folder & default tab, if I keep it in folding code style one the keyword would be highlighted in non keyword. But if I put it in folding code style two, the keyword does not get highlighted in the non key word. So the do won’t be highlighted in idoc_word.

        In Folding in code 1 style, the keywords or symbols do not need spaces around them, so if you have do in the Folding in code 1 style then it will highlight the do in idoc_word. In Folding in code 2 style, the keywords or symbols require spaces around them, so the do in Folding in code 2 style will not highlight the do in idoc_word. If you are matching words (like if/elsif/else or while/wend), I find it best to use Folding in code 2; if you are using symbols (like {/}), it’s usually okay to use Folkding in code 1.

        cll142C 1 Reply Last reply Reply Quote 1
        • cll142C Offline
          cll142 @PeterJones
          last edited by

          @PeterJones Thanks for helping me get a better understanding of how the different folding style works and why keywords were being highlighted in non keywords.

          1 Reply Last reply Reply Quote 0

          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