Scrip Editor

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
sokiya
Posts: 15
Joined: January 15th, 2014, 5:48 am

Scrip Editor

Post by sokiya »

Hi,

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

Best,
Stephen.
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Scrip Editor

Post 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,
G.VOLNY, a CSProuser from Haiti, since 2004
sokiya
Posts: 15
Joined: January 15th, 2014, 5:48 am

Re: Scrip Editor

Post 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?
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Scrip Editor

Post 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?
sokiya
Posts: 15
Joined: January 15th, 2014, 5:48 am

Re: Scrip Editor

Post 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?
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Scrip Editor

Post 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.
sokiya
Posts: 15
Joined: January 15th, 2014, 5:48 am

Re: Scrip Editor

Post 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.
sokiya
Posts: 15
Joined: January 15th, 2014, 5:48 am

Re: Scrip Editor

Post 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.
Attachments
notepad.png
notepad.png (47.13 KiB) Viewed 5623 times
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Scrip Editor

Post 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.
sokiya
Posts: 15
Joined: January 15th, 2014, 5:48 am

Re: Scrip Editor

Post 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!
Post Reply