You are here: PSPad forum > English discussion forum > Windows shell script highlighter
Posted by: jlenfers | Date: 2026-09-28 15:30 | IP: IP Logged
I've noticed that the highlighter doesn't match the ")" char correctly when using the "^" escape char. Sample code:
@echo off
set tempfile=~%random%.tmp
(
ECHO select * from ^(
ECHO select strftime^('%%w', current_date^) as weekday
ECHO ^);
) > %tempfile%
Posted by: pspad | Date: 2026-09-29 11:31 | IP: IP Logged
Thank you for report. It should be fixed in the next build
Posted by: Maple731 | Date: 2026-10-04 02:38 | IP: IP Logged
Switched to PSPad recently for quick hex+text work and love the lightweight feel. For shell scripts the highlighter options under Settings > Highlighters cover most batch quirks, and custom keyword files can be attached per extension - that solved the coloring for .cmd vs .bat for me. Anyone here combining it with PowerShell profiles? Curious how you handle encoding when mixing the two.
Posted by: pspad | Date: 2026-10-04 04:24 | IP: IP Logged
Encoding is independent of highlighter.
In default, cmd uses Latin 2, PS uses ANSI.
If you want to combine it, you can use CHCP command in your script and unite ancoding
Posted by: Maple731 | Date: 2026-10-05 04:09 | IP: IP Logged
Sorry to bump an older thread, but I ran into the same thing last week and wanted to thank everyone in this topic - the notes here saved me a couple of hours of trial and error. I mostly edit config files and templates, so the highlighting and the compare plugin are what I rely on daily. One small thing that helped me: keeping a second PSPad window with the project tree pinned makes batch edits much less error-prone. Keep up the good work on the editor!
Editor PSPad - freeware editor, © 2001 - 2026 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR