Community
    • Login

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

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 1.9k 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.
    • Scott CS Offline
      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 Offline
        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 Offline
          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 Offline
            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

            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