Community
    • Login

    Keywords List Nesting disabled

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 657 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.
    • giorgio settiG Offline
      giorgio setti
      last edited by

      Hi, do you know why the “Keywords List - Nesting menu” is disabled?

      7e8a4160-37e3-4e6d-8dee-19d175695058-image.png

      Thank you,
      GS

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

        @giorgio-setti said in Keywords List Nesting disabled:

        Hi, do you know why the “Keywords List - Nesting menu” is disabled?

        How would you nest one keyword inside another? Let’s say I have the keywords word and float in Keyword 1 and the words and and or and not in Keyword 2. If you were able to tell the UDL engine that you wanted to be able to nest Keyword 1 inside Keyword 2, what would that even mean? awordnd ? ofloatr? Nesting keywords inside each other is nonsensical, and thus the UDL engine disables that portion of the dialog box. (They leave that portion of the dialog box because it was easier to program it to just disable that section than to hide that section, or use a different dialog box template for the two different Styler Dialog conditions.)

        Other of the Styler Dialogs, like Operators & Delimiters, have the Nesting checkboxes available, because the delimiters have both a start and an end, so it makes logical sense to be able to allow certain keywords to occur between certain delimiters – for example, if you used { and } as an open/close pair, it makes sense to be able to nest keywords like if and abs() inside them; and if you use "/" as an open/close pair, it makes sense to not allow keywords inside the quoted strings.

        f642bcf9-23f3-4e7e-bb9f-bdc6e97e4e43-image.png

        1 Reply Last reply Reply Quote 3

        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