• Login
Community
  • Login

KQL -Kusto Query Language

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 1.9k 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.
  • R
    Raguram Manokaran
    last edited by Raguram Manokaran Jun 9, 2023, 5:46 AM Jun 9, 2023, 5:42 AM

    How to save KQL query in Notepad++
    Reason:
    I did not see any KQL language in Notepad++
    Steps:
    1)Open Notepad++.
    2)Go to “Language” in the menu bar and select “Define your language…”.
    3)In the “User Defined Language” window, click the “Import” button.
    4)Locate and select an existing XML file for KQL language definition. You can search for “Notepad++ KQL language definition XML” or explore the Notepad++ User Defined Language Repository on GitHub.
    If you find a suitable XML file, download it to your computer.

    Help:
    Please help me with the 4th point

    M L 2 Replies Last reply Jun 9, 2023, 5:55 AM Reply Quote 0
    • M
      Mark Olson @Raguram Manokaran
      last edited by Jun 9, 2023, 5:55 AM

      @Raguram-Manokaran
      I recommend trying to create your own UDL. Without knowing more about KQL, I can’t give more specific advice.

      If you find the base UDL system lacking, try using EnhanceAnyLexer for more complex syntax highlighting rules.

      1 Reply Last reply Reply Quote 1
      • L
        Lycan Thrope @Raguram Manokaran
        last edited by Lycan Thrope Jun 9, 2023, 8:14 PM Jun 9, 2023, 8:12 PM

        @Raguram-Manokaran ,
        @Mark-Olson is correct.
        The steps you are trying to do, especially your 4th point, only works if KQL is an already existent language in a Notepad++ UDL formatted file.

        Secondly, the Import button you’re trying to use, is only usable if you are getting a UDL file that has already been created by yourself or someone else in the format that Notepad++ expects it’s UDL to be, so you can import it into the UDL language listing. If the language does not exist already, then you won’t find it. Period.

        As @Mark-Olson suggests, you can create your own UDL langauge, and then if you want to let others Import it into their Notepad++ installations, then that button will be usable to them, on the file that you supply, most likely named KQL.xml after you have created it.

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