are there any editors that color code psp scripts?

Moderator: Kathy_9

mangurian
Posts: 122
Joined: Wed Sep 01, 2010 4:54 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Dell Inc 0K3CM7 A00
processor: Intel I7 11th Gen
ram: 64 Gig
Video Card: NVIDIA GeForce RTX 3060 [Display adapter]
Hard_Drive_Capacity: 3 T
Corel programs: VSP, PSP
Location: Connecticut USA

are there any editors that color code psp scripts?

Post by mangurian »

Python scripts are so nicely color coded in editors like Sublime.
Different colors makes editing so much easier.

Can this be done for psp scripts?
LeviFiction
Advisor
Posts: 6774
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: are there any editors that color code psp scripts?

Post by LeviFiction »

Yes, any editor can be set as the default editor for PSP scripts. I used to use Notpad++ now I use VSCode.

You just have to set the editor in the File Locations dialog inside of PSP. File -> Preferences -> File Locations

Along the right-side you'll see an option for the Script editor, click on that and it'll present a text box with a browse button, browse to your editor's EXE file and set it as the editor for PSP scripts. Now when you click the Edit Script button it'll open in your editor of choice.
mangurian
Posts: 122
Joined: Wed Sep 01, 2010 4:54 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Dell Inc 0K3CM7 A00
processor: Intel I7 11th Gen
ram: 64 Gig
Video Card: NVIDIA GeForce RTX 3060 [Display adapter]
Hard_Drive_Capacity: 3 T
Corel programs: VSP, PSP
Location: Connecticut USA

Re: are there any editors that color code psp scripts?

Post by mangurian »

psp now opens VSCode to edit scripts, but still just black amnd white.
No color coding of commands, parameters, etc.
LeviFiction
Advisor
Posts: 6774
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: are there any editors that color code psp scripts?

Post by LeviFiction »

If you're using VSCode you need to edit the VSCode settings to associate files with the .PSP script extension as Python files.

https://code.visualstudio.com/docs/lang ... dentifiers
User avatar
fs999
Posts: 88
Joined: Thu Jul 21, 2011 9:55 pm
operating_system: Windows 10
System_Drive: Z
32bit or 64bit: 64 Bit
motherboard: Intel
processor: i7 860
ram: 32GB
Video Card: NVIDIA GeForce GTX 730
sound_card: Samsung HDMI
Hard_Drive_Capacity: 28 TB
Monitor/Display Make & Model: Philips 24P4 & Samsung UE46M6050
Corel programs: PaintShop 2023 Ultimate

Re: are there any editors that color code psp scripts?

Post by fs999 »

PSPad does it too, but you will have to add *.pspscript to the file masks editbox, in the Highlighters Settings window (selecting Python) on the Specification page.

http://www.pspad.com/