Community
    • Login

    Dot as separator

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