14 Dec 2023 04:30 PM
Hi,
Maybe you are Notepad++ enjoyer like me, and you are addict to it , so you use it basically for copy-pasting everything as to edit it easily ?
I was wondering if someone already created the language file for DQL so we could have the DQL language integrated in Notepad++?
https://github.com/notepad-plus-plus/userDefinedLanguages/tree/master
Best regards,
christophe
Solved! Go to Solution.
15 Dec 2023 07:46 AM
Hi,
Keep in mind integrate DQL editor have autocompletion, it means, it is more than syntax highlighting.
Best regards
15 Dec 2023 08:25 AM
Hi,
Yes, it's not forgotten : The integrated DQL editor has autocompletion but not all features from a text editor.
Also auto-completion unfortunately concerns only the syntax of the language and not entities or objects, so basically if we could use autocompletion in an external text editor, we could have benefits of auto-completion and benefits of text editor !
Best Regards
18 Dec 2023 09:17 AM - edited 18 Dec 2023 04:22 PM
Hello Christophe!
I have a basic draft that I can share, you can extend the list of functions to whichever you use, but it will still be just a syntax highlight, abilities of Notepad++ user lang are still pretty limited.
<NotepadPlus>
<UserLang name="DQL_TEST" ext="dql" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="yes" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
<Keywords name="Numbers, extras2"></Keywords>
<Keywords name="Numbers, suffix1"></Keywords>
<Keywords name="Numbers, suffix2"></Keywords>
<Keywords name="Numbers, range"></Keywords>
<Keywords name="Operators1">| = : , ( ) [ ] { }</Keywords>
<Keywords name="Operators2">or and</Keywords>
<Keywords name="Folders in code1, open"></Keywords>
<Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close"></Keywords>
<Keywords name="Folders in code2, open"></Keywords>
<Keywords name="Folders in code2, middle"></Keywords>
<Keywords name="Folders in code2, close"></Keywords>
<Keywords name="Folders in comment, open"></Keywords>
<Keywords name="Folders in comment, middle"></Keywords>
<Keywords name="Folders in comment, close"></Keywords>
<Keywords name="Keywords1">fetch filter filterOut limit sort summary fields fieldsAdd fieldsRemove fieldsRename summarize join lookup parse data</Keywords>
<Keywords name="Keywords2">logs events bizevents</Keywords>
<Keywords name="Keywords3">from to kind by on prefix sourceField lookupField scanLimitGBytes</Keywords>
<Keywords name="Keywords4">contains matchesValue matchesPhrase in count now avg min max record</Keywords>
<Keywords name="Keywords5">LD IPV4 DATA HTTPDATE</Keywords>
<Keywords name="Keywords6">dt.entity. dt.system.buckets dt.system.events dt.system.data_objects dt.system.query_executions</Keywords>
<Keywords name="Keywords7"></Keywords>
<Keywords name="Keywords8"></Keywords>
<Keywords name="Delimiters">00" 01\ 02" 03' 04\ 05' 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="C0C0C0" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="9191FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="8000FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="7D007D" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="8080C0" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="800080" bgColor="FFFFFF" fontStyle="2" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="007171" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="800080" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" fgColor="008000" bgColor="FFFFFF" fontStyle="0" nesting="16384" />
<WordsStyle name="DELIMITERS2" fgColor="008040" bgColor="FFFFFF" fontStyle="1" nesting="0" />
<WordsStyle name="DELIMITERS3" fgColor="FF8040" bgColor="FFFFFF" fontStyle="1" nesting="117702655" />
<WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="808080" colorStyle="1" fontStyle="0" nesting="117702655" />
<WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
</Styles>
</UserLang>
</NotepadPlus>