are there any editors that color code psp scripts?

Moderator: Kathy_9

Post Reply
mangurian
Posts: 109
Joined: Wed Sep 01, 2010 4:54 am
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: MSI IONA 1.0
processor: 3.20 gigahertz Intel Core i5 650
ram: 8 Gig
Video Card: NVIDIA GeForce GT 230
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 2 T
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: 5985
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, 9, X, XI, X2, X8,X9, 2018, 2019
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: 109
Joined: Wed Sep 01, 2010 4:54 am
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: MSI IONA 1.0
processor: 3.20 gigahertz Intel Core i5 650
ram: 8 Gig
Video Card: NVIDIA GeForce GT 230
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 2 T
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: 5985
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, 9, X, XI, X2, X8,X9, 2018, 2019
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: 46
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 2020 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/
Post Reply