Hi,
Could there be an existing Script that accurately highlights CSPro key words apart from the logic?
Best,
Stephen.
Scrip Editor
Re: Scrip Editor
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,
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,
G.VOLNY, a CSProuser from Haiti, since 2004
Re: Scrip Editor
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?
-
- Posts: 1801
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Scrip Editor
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?
%AppData%\Notepad++
Paste the userDefineLang.xml file in that folder.
Restart Notepad++. Do you see the languages?
Re: Scrip Editor
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?
-
- Posts: 1801
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Scrip Editor
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.
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
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
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.
- Attachments
-
- notepad.png (47.13 KiB) Viewed 5897 times
-
- Posts: 1801
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Scrip Editor
I'm not sure. This works on all of my machines. Perhaps you can try this:
https://stackoverflow.com/questions/125 ... 6#18283356
https://stackoverflow.com/questions/125 ... 6#18283356
Uncomment the opening and closing "NotepadPlus" tags.
Re: Scrip Editor
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!