• Login
Community
  • Login

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

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 1.6k 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.
  • S
    Scott C
    last edited by Aug 20, 2018, 11:38 AM

    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.]

    C 1 Reply Last reply Aug 20, 2018, 11:52 AM Reply Quote 0
    • C
      Claudia Frank @Scott C
      last edited by Aug 20, 2018, 11:52 AM

      @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
      • I
        imdjs
        last edited by Aug 31, 2018, 10:02 AM

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

        C 1 Reply Last reply Aug 31, 2018, 12:18 PM Reply Quote 0
        • C
          Claudia Frank @imdjs
          last edited by Aug 31, 2018, 12:18 PM

          @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