Community
    • Login

    Error in comments.

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 532 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.
    • Matthias SteinerM Offline
      Matthias Steiner
      last edited by

      I created my own language, but the comments don’t work properly:
      d0a9f341-2117-4191-aa16-7390933e4055-image.png
      26088820-bb57-4ae4-bffc-299b73264c86-image.png
      What do I have to change to make it appear correctly?

      Greetings, Matthias

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

        @Matthias-Steiner ,

        You haven’t shown us enough about your UDL, because if I have just the sections you showed us, I get
        1dee150b-c8fa-494e-9e57-3a58125a714c-image.png
        …that is, the comments all properly highlight.

        My guess is that your comments are actually nested in something else (a delimiter, or a folding section, or similar), but that the Styler for that element doesn’t allow nesting of comments.
        aed1f745-9218-4e8c-880f-a36a135f131f-image.png

        Without your complete UDL definition, I cannot tell you more specifically which element needs to enable the nesting for comments/block-comments. … But hopefully, this is enough for you to figure it out on your own, or you will share more info with us. Good luck

        1 Reply Last reply Reply Quote 1
        • Matthias SteinerM Offline
          Matthias Steiner
          last edited by

          253/5000
          Ok, I did, but to no avail.
          I’ve now realized that it must have something to do with the Delimiters. Because if I enter “#” as the end, it works. But that would not be the right way, as that is certainly not always the end …
          729e942d-2fba-4a82-a767-fd49f112df9c-image.png

          EkopalypseE 1 Reply Last reply Reply Quote 0
          • EkopalypseE Offline
            Ekopalypse @Matthias Steiner
            last edited by

            @Matthias-Steiner

            Delimiter work best if they are defined with start/end tags.
            If other parts are within a delimiter try playing with nesting (available via styler button) to see if this solves your issues.

            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