I used “User Defined Dialog” to add Informix 4GL to the supported Languages.
The problem was for “Folders”; Informix uses "End" keyword followed by another keyword "if case, .." to indicate block end “if ….. end if”, “function …… end function” and so on.
Notepad Plus uses white space as list separator in XML configuration files; so it recognize “end if” as two different folder closing keywords.
I tried turn around using search & replace all “end if” to “endif” just after opining the file and revert it back “endif” to “end if” just before saving; it works but if there is a macro which can be used to do that it will be helpful. Going farther if there is some sort of autorun macro which can be called automatically from the open command to replace and another one to be called from the save command it will be more helpful.
If someone knows how to create such macros, or know how to use another keyword separator in the “userDefineLang.xml” file please let me know; my mail is ihabq8@hotmail.com.
Thanks
Ahmed Ihab
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I used “User Defined Dialog” to add Informix 4GL to the supported Languages.
The problem was for “Folders”; Informix uses "End" keyword followed by another keyword "if case, .." to indicate block end “if ….. end if”, “function …… end function” and so on.
Notepad Plus uses white space as list separator in XML configuration files; so it recognize “end if” as two different folder closing keywords.
I tried turn around using search & replace all “end if” to “endif” just after opining the file and revert it back “endif” to “end if” just before saving; it works but if there is a macro which can be used to do that it will be helpful. Going farther if there is some sort of autorun macro which can be called automatically from the open command to replace and another one to be called from the save command it will be more helpful.
If someone knows how to create such macros, or know how to use another keyword separator in the “userDefineLang.xml” file please let me know; my mail is ihabq8@hotmail.com.
Thanks
Ahmed Ihab