Community
    • Login

    Dot as separator

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 2.8k 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.
    • Aleksei SamovA Offline
      Aleksei Samov
      last edited by

      I set up the syntax highlighting of numbers with a decimal point. The numbers with the dot are highlighted correctly:
      http://i.imgur.com/Q1pxrY6.jpg
      But the problem arises if I want to highlight the word I need, in this case PYCIRCLEOBJECT_RAD. Here’s the line of code:
      Data.SetReal (c4d.PYCIRCLEOBJECT_RAD, 200.0)
      I put this word in the first group:
      http://i.imgur.com/2VzS8CR.jpg
      It is not highlighted, because to the left of it there is a point, and I have already placed a comma in the operators.
      But if I place a period in the operators, then the word is highlighted, but the numbers are not displayed correctly.
      http://i.imgur.com/5kkmaI0.jpg

      How can I make it so that the word is backed up and the numbers with a period?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Aleksei Samov
        last edited by

        @Aleksei-Samov

        not sure if this is a possible solution but
        what if you define a delimiter with

        open=c4d.
        close=,

        and allow nesting with keywords and numbers and additional delimiters if needed?

        Cheers
        Claudia

        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