• Login
Community
  • Login

User Defined Language: Comment & Number vs. Keywords Lists

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 2.8k 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.
  • C
    Christopher Redmond
    last edited by Dec 13, 2016, 8:57 PM

    I found a NPP UDL someone else had developed back in 2012 for IBM Cognos TM1. I have since updated it with new keywords to cover the new functions among other enhancements. Two questions:

    1. Is there a common NPP community where I can upload the definition for other folks?
    2. Back ground: TM1 uses # as the comment notation character. There is a third-party add-on tool named QUBEdocs which allows for automation of model documentation. This product takes advantage of the comment character (#) by allowing tags such as #LASTCHANGE which can be entered into the code and then are picked up by QUBEdocs and placed into the HTML documentation it generates.
      Here is the challenge and question: I have identified # as the Open Comment line style and place the QUBEdocs tags in a Keywords Lists group. However, all lines which start with # are styled the same and the QUBEdocs keywords are not styled according to the assigned definition. This leads me to believe that the comment is processed before the keywords. How can I change this language definition so the QUBEdocs tags are styled separately?
    C 1 Reply Last reply Dec 13, 2016, 9:46 PM Reply Quote 0
    • C
      Claudia Frank @Christopher Redmond
      last edited by Claudia Frank Dec 13, 2016, 9:46 PM Dec 13, 2016, 9:46 PM

      @Christopher-Redmond

      I don’t know TM1 but what you could try is to use # as a delimiter and
      allow nesting of your keywords.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • J
        Jim Dailey
        last edited by Dec 13, 2016, 9:47 PM

        If there aren’t many of the #keywords, you can use the delimiters on the Operators & Delimiters tab.

        Define the #keywords from longest to shortest and choose whatever style(s) you want for each:

        Delimiter 1: Open = “#LASTCHANGE”, Close = “((EOL))”
        Delimiter 2: Open = “#OTHER”, Close = “((EOL))”
        …
        Delimiter 8: Open = “#”, Close = “((EOL))”

        1 Reply Last reply Reply Quote 1
        • J
          Jim Dailey
          last edited by Jim Dailey Dec 13, 2016, 9:56 PM Dec 13, 2016, 9:55 PM

          @Christopher-Redmond

          Actually, I think you can define several #keywords in one delimiter style (separate them with spaces):

          Open = “#LASTCHANGE #OTHER #ANDMORE”
          Close = “((EOL)) ((EOL)) ((EOL))”

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