Useful TM1 language highlighter for Notepad ++
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Useful TM1 language highlighter for Notepad ++
I worte it and it supports all languages up to 9.5.2 in TM1 (Process scripts, rules etc.)
You can use latest Notepad++ to import this UDL xml file into it and it would be there in Language menu for you to select and highlight.
In Notepad ++, View -> User Defined Dialogue... -> Import
You can use latest Notepad++ to import this UDL xml file into it and it would be there in Language menu for you to select and highlight.
In Notepad ++, View -> User Defined Dialogue... -> Import
- Attachments
-
- TM1.zip
- Notepad ++ TM1 language
- (2.35 KiB) Downloaded 8620 times
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
A little modification. This is the latest one.
- Attachments
-
- TM1.zip
- (2.35 KiB) Downloaded 7976 times
-
- MVP
- Posts: 3218
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
Thank you, nice addition !
Certainly the sections on IF-ENDIF;
Too bad a second section for WHILE-END; does not seem possible (I tested a few minutes).
Certainly the sections on IF-ENDIF;
Too bad a second section for WHILE-END; does not seem possible (I tested a few minutes).
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
Yeah, I have thought about that but looks like notepad++ only supports one section. Anyway, WHILE-END is not so widely used as IF-ENDIF;Wim Gielis wrote:Thank you, nice addition !
Certainly the sections on IF-ENDIF;
Too bad a second section for WHILE-END; does not seem possible (I tested a few minutes).
- rkaif
- Community Contributor
- Posts: 328
- Joined: Fri Sep 05, 2008 6:58 pm
- OLAP Product: IBM Cognos TM1
- Version: 9.1 or later
- Excel Version: 2003 or later
Re: Useful TM1 language highlighter for Notepad ++
We can setup While as well as IF at the same time. Please see the attached screen shot.macsir wrote: Yeah, I have thought about that but looks like notepad++ only supports one section. Anyway, WHILE-END is not so widely used as IF-ENDIF;
- Attachments
-
- Notepad++ IF and While
- Notepad.JPG (4.43 KiB) Viewed 121528 times
Cheers!
Rizwan Kaif
Rizwan Kaif
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
Thanks for useful advice. I have added this into latest version and also update some bugs.rkaif wrote:We can setup While as well as IF at the same time. Please see the attached screen shot.macsir wrote: Yeah, I have thought about that but looks like notepad++ only supports one section. Anyway, WHILE-END is not so widely used as IF-ENDIF;
- Attachments
-
- TM1.zip
- (2.36 KiB) Downloaded 8364 times
-
- MVP
- Posts: 3218
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
A nice little thing for TI code in Notepad++, is that you can add commentary signs (see the Edit menu).
Since the commentary sign for TI syntaxis is defined as #, this character is added at the beginning of the line.
This saves me from either manually adding the #, either using the lame workaround of:
IF(1=0);
'code
ENDIF;
Since the commentary sign for TI syntaxis is defined as #, this character is added at the beginning of the line.
This saves me from either manually adding the #, either using the lame workaround of:
IF(1=0);
'code
ENDIF;
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- MVP
- Posts: 3696
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Useful TM1 language highlighter for Notepad ++
Oh c'mon it's a brilliant workaround!Wim Gielis wrote:A nice little thing for TI code in Notepad++, is that you can add commentary signs (see the Edit menu).
Since the commentary sign for TI syntaxis is defined as #, this character is added at the beginning of the line.
This saves me from either manually adding the #, either using the lame workaround of:
IF(1=0);
'code
ENDIF;

-
- MVP
- Posts: 3218
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
Yeah Lotsa, you know me by now, always willing to learn new tricks to the communitylotsaram wrote:Oh c'mon it's a brilliant workaround!Wim Gielis wrote:A nice little thing for TI code in Notepad++, is that you can add commentary signs (see the Edit menu).
Since the commentary sign for TI syntaxis is defined as #, this character is added at the beginning of the line.
This saves me from either manually adding the #, either using the lame workaround of:
IF(1=0);
'code
ENDIF;


Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
Thanks for sharing, useful tricks. 

-
- Posts: 9
- Joined: Thu May 30, 2013 8:46 pm
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2010
Re: Useful TM1 language highlighter for Notepad ++
Sorry to re-open such old thread with a dumb question
How do you use the notepad++ for TI editing? Are you copy/pasting related TI's tab all the time? Or are you modifying the *.pro file directly and somehow forcing tm1 server to reload it? Or am I completely missing something???

How do you use the notepad++ for TI editing? Are you copy/pasting related TI's tab all the time? Or are you modifying the *.pro file directly and somehow forcing tm1 server to reload it? Or am I completely missing something???
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
I am using copy/pasting related TI's tabs into notepad++ for TI editing only. I never modify the *.pro file directly coz it might corrupt the file and crash the server.SirDuke wrote:Sorry to re-open such old thread with a dumb question![]()
How do you use the notepad++ for TI editing? Are you copy/pasting related TI's tab all the time? Or are you modifying the *.pro file directly and somehow forcing tm1 server to reload it? Or am I completely missing something???
-
- MVP
- Posts: 3218
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
Hello
I noticed that a structure like IF-ELSEIF-ENDIF will not work correctly regarding collapsing the full IF:
For example:
If you now collapse the IF with the minus sign to the left of it (in Notepad++) also the 2 lines of commentary will be hidden.
Anyone who can and wants to have a look at this? Macsir of rkaif?
Thanks!
Wim
I noticed that a structure like IF-ELSEIF-ENDIF will not work correctly regarding collapsing the full IF:
For example:
Code: Select all
If(c = 2);
a = 0;
ElseIf(c = 3);
b = 0;
EndIf;
# commentaar
# other code
Anyone who can and wants to have a look at this? Macsir of rkaif?
Thanks!
Wim
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: Useful TM1 language highlighter for Notepad ++
Hi, Wim
I have tested the language settings in NP++ but failed. Although NP++ above 6.2 does support Multipart keywords, it still doesn't work well. So, just use the current best version. Maybe once NP++ goes into version 7, I will try it again.
I have tested the language settings in NP++ but failed. Although NP++ above 6.2 does support Multipart keywords, it still doesn't work well. So, just use the current best version. Maybe once NP++ goes into version 7, I will try it again.