Community
    • Login

    Language styler for User Defined Language Style - <anything>(

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 1.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.
    • Scott CS
      Scott C
      last edited by

      Hi, I’m working with some PLC code, which has thousands of built-in functions, and I can write my own functions also. A function syntax can be identified by any single word immediately followed by an open bracket (.
      E.g.:
      x = sin(2.8)
      Wait(250)
      StartConnection_2(now(), 2)

      Short of adding every single function to my keyword list (including every new function I write), is there anyway to define “<anything>(” as an item which can be styled?

      Thanks,
      Critcho

      [Before you ask - I’m using NotePad++ to view/edit the PLC code because the search function in the native editor/compiler doesn’t work, and so I can export formatted code to documentation.]

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Scott C
        last edited by

        @Scott-C

        No, that is one of those features UDL isn’t good at it.
        What you can do, if by any chance you are using or willing to install python script plugin,
        is described here.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • imdjsI
          imdjs
          last edited by

          I have the same request how to make notepad++ recognize any function with func(); style and hightlight it?

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @imdjs
            last edited by

            @imdjs

            May I ask you whether you read the link from previous last post?
            Or do you have something other in mind?

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors