Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 253 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.
    • cll142C
      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
        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
          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors