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



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



  • @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



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



  • @imdjs

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

    Cheers
    Claudia


Log in to reply