Page 1 of 1

Scrip Editor

Posted: May 21st, 2018, 9:04 am
by sokiya
Hi,

Could there be an existing Script that accurately highlights CSPro key words apart from the logic?

Best,
Stephen.

Re: Scrip Editor

Posted: May 21st, 2018, 9:57 am
by htuser
Hi Stephen,
Yes. Please go to Cspro installation folder and look at the userDefineLang.xml
It contain all Cspro language keyword. You can import to as an user defined language in, by example, notepad ++. So, you can use notepad ++ as Cspro
logic editor, but without ability to compile Cspro logic inside.

Hope this help you,

Re: Scrip Editor

Posted: May 21st, 2018, 11:26 am
by sokiya
Thanks so much for your feedback. I have done some online search and have found that I need to copy the file userDefineLang.xml into Notepad++ folder. I have tried this and unfortunately it hasn't worked in my case. Could there be something am missing? Is there a better way to integrate the two?

Re: Scrip Editor

Posted: May 21st, 2018, 6:40 pm
by Gregory Martin
Close Notepad++, open Windows Explorer, and enter this in the address bar:

%AppData%\Notepad++

Paste the userDefineLang.xml file in that folder.

Restart Notepad++. Do you see the languages?

Re: Scrip Editor

Posted: May 22nd, 2018, 2:44 am
by sokiya
Thanks Gregory a bunch! It has worked. However I don't know why the keywords are still not highlighted in a different colour. Is there an additional setting that I need to make?

Re: Scrip Editor

Posted: May 22nd, 2018, 6:54 am
by Gregory Martin
You either have to:

1) Have a file open with the extension .apc or .pff.

2) Select the Language menu and select one of the CSPro options that should appear at the bottom.

Re: Scrip Editor

Posted: May 22nd, 2018, 7:46 am
by sokiya
Thanks Gregory for your help. I have tried either options and still the keywords aren't highlighted in different color. At least now CSPro appears as one of the sub menus under Language and can have Notepad++ as one of the options while trying to open .pff file. It opens in the Notepad++ editor but with no different coloring of keywords.

Re: Scrip Editor

Posted: May 22nd, 2018, 10:00 am
by sokiya
If I choose a different language like C++ keywords such as if and integers are highlighted (attached is a screen shot). This isn't the case when I shift to CSPro. I will appreciate a work around on this.

Re: Scrip Editor

Posted: May 23rd, 2018, 7:10 am
by Gregory Martin
I'm not sure. This works on all of my machines. Perhaps you can try this:

https://stackoverflow.com/questions/125 ... 6#18283356
Uncomment the opening and closing "NotepadPlus" tags.

Re: Scrip Editor

Posted: May 23rd, 2018, 7:45 am
by sokiya
Thanks Greg for your help all through. I really appreciate your assistance. The link has been helpful to me. I was using v5.6.8 and as one of the guy noted, some earlier versions don't work properly. After upgrading to v7.5.6 I was able to get the desired output. Thanks again!