To configure PSPad to recognize PowerShell here-strings (@' ... '@ and @" ... "@) as strings, you’ll want to define these delimiters properly in its syntax highlighting settings. PSPad allows you to customize syntax highlighting by specifying string delimiters.
Here’s what you need to do: Open PSPad. Go to Settings > Configure User Defined Languages. Select the PowerShell language or create a new user-defined language for PowerShell. Find the Strings or Quotes section. Add the following pairs as string delimiters: Start: @' End: '@ Start: @" End: "@ This tells PSPad that everything between those start and end markers should be treated as a string, just like regular single or double-quoted strings. Note: Make sure to include the @ symbol as part of the delimiter to match PowerShell here-string syntax exactly. If PSPad does not support multi-character delimiters directly, you might need to adjust or check if your version supports it or if you can define a keyword-based rule. If you want me to, I can help create a sample snippet or a User Defined Language XML for PSPad to handle here-strings properly. Would you like that? -- <https://forum.pspad.com/read.php?2,79415,79495> PSPad freeware editor https://www.pspad.com
