PSPad Syntax Highlighting

Discuss and share scripts and script files...
RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

PSPad Syntax Highlighting

Post by RalphM »

I have updated the language definition files for PSPad to reflect the changes made in XY's scripting engine up to v12.40.0205.

Attached is a zip with the current files.

@Don: Feel free to replace them as well on the homepage, but I think they can be found easy enough here on the forum.
Attachments
PSPad_XYScript_language_files_v12.40.0205.zip
(6.9 KiB) Downloaded 228 times
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

serendipity
Posts: 3358
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: PSPad Syntax Highlighting

Post by serendipity »

RalphM wrote:I have updated the language definition files for PSPad to reflect the changes made in XY's scripting engine up to v12.40.0205.

Attached is a zip with the current files.

@Don: Feel free to replace them as well on the homepage, but I think they can be found easy enough here on the forum.
Thanks, I am switching to PSPad. :)

PeterH
Posts: 2785
Joined: 21 Nov 2005 20:39
Location: Germany

Re: PSPad Syntax Highlighting

Post by PeterH »

RalphM wrote:I have updated the language definition files for PSPad to reflect the changes made in XY's scripting engine up to v12.40.0205.
Aaah - last time you updated I used it quite lately - and forgot to thank you :oops:

So this time: thanks a lot for your work! :appl: :appl: :appl:
Win11 Pro 223H2 Gerrman

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: PSPad Syntax Highlighting

Post by RalphM »

You're welcome everybody.

After I answered a question on the forum about syntax highlighting and had to say that the PSPad language files were only almost up to date, I went to check and figured it was about time to catch up on it.
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: PSPad Syntax Highlighting

Post by RalphM »

RalphM wrote:I have updated the language definition files for PSPad to reflect the changes made in XY's scripting engine up to v12.40.0205.
...
@Don: Feel free to replace them as well on the homepage, but I think they can be found easy enough here on the forum.
@Don: Since you didn't want this to be the sole place to share syntax highlighters for editors (by adding another one in the license lounge), you should probably update this one in the license lounge as well... :whistle:
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

admin
Site Admin
Posts: 60564
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: PSPad Syntax Highlighting

Post by admin »

Ah, you got me! :mrgreen: No, I'm not starting this again. No time. github might be a way to make it easier for me, or any other possibility to provide a fixed link whose contents can be updated by you...

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: PSPad Syntax Highlighting

Post by Stefan »

Tip: send the PSPad files to Jan to include it into next release. (support#pspad.com)

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: PSPad Syntax Highlighting

Post by RalphM »

@Stefan: With PSPad update cycles of +/- 2 years this doesn't make sense, me thinks.
By the time it is integrated into the distribution it won't be current anymore.

@Don: What's wrong with a dedicated thread per highlighter in the Scripting section, the way I started this one?
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: PSPad Syntax Highlighting

Post by Stefan »

RalphM wrote:@Stefan: With PSPad update cycles of +/- 2 years this doesn't make sense, me thinks.
By the time it is integrated into the distribution it won't be current anymore.
Right. But he includes such things also into the beta archives.
I can ask him if you want myself (after your files are proved by the community to be correct)




 

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: PSPad Syntax Highlighting

Post by RalphM »

The number of potential users probably doesn't make it worth for him to spend time on integrating it.
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

binocular222
Posts: 1416
Joined: 04 Nov 2008 05:35
Location: Hanoi, Vietnam

Re: PSPad Syntax Highlighting

Post by binocular222 »

Can you add a screenshot here?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: PSPad Syntax Highlighting

Post by RalphM »

Here you are:
hc_165.jpg
hc_165.jpg (669.36 KiB) Viewed 5020 times
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

PeterH
Posts: 2785
Joined: 21 Nov 2005 20:39
Location: Germany

Re: PSPad Syntax Highlighting

Post by PeterH »

Hi RalphM,
just a small question, maybe you have an idea?

Seeing your sceenshot I noticed that the bold words were very good to recognize. Written directly in PSPad on my PC the difference between normal and bold seems to be *much* less - really not so easy to see. (On writing a codeword like Input I can see that it changes to bold, but the difference to normal just is quite small.)

Do you have any idea what could be the reason? Maybe the font in use or so? (For me it's Courier New 10 - but it seems I don't have many selections here.)
Win11 Pro 223H2 Gerrman

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: PSPad Syntax Highlighting

Post by RalphM »

My font is Lucinda Console and AFAIR I never changed anything font related in PSPad's settings...
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

PeterH
Posts: 2785
Joined: 21 Nov 2005 20:39
Location: Germany

Re: PSPad Syntax Highlighting

Post by PeterH »

RalphM wrote:My font is Lucinda Console and AFAIR I never changed anything font related in PSPad's settings...
Ah - thanks a lot! Lucida Console (L.C.) shows much more difference for bold text! :appl:

Though a bit strange on first sight:
- L.C. in preview *seems* to be wider if it's bold. :shock: But in real this isn't true :biggrin:
(this was why I didn't test it :oops: )
- the first look on a full page is very strange if you are used to Courier New.
- L.C. 10 is much wider than C.N. 10: 90 instead of 100 columns for definite window size :(
- but it's hight is smaller: 54 instead of 45 lines :D
:arrow: tested with L.C. 9: width like C.N. 10, height still a bit smaller, still good readable, *good* contrast for bold text!

:arrow: :arrow: seems I'll stick to Lucida Console 9 :D :appl:

So thanks again!
Win11 Pro 223H2 Gerrman

Post Reply