Sun 29 Jul 2007
I often find it neat and helpful to paste syntax-highlighted code listings to my documents and email communications. In addition to the aesthetics, the syntax highlighting allows for more readable code. Of the many powerful text editors out there, PSPad provides a feature for generating syntax-highlighted rich text.
Setup
- Download and install the latest version of PSPad from http://www.pspad.com
- Save the file PeopleCode.INI below into the Syntax folder inside PSPad install location. By default, this would be C:\Program Files\PSPad editor\Syntax\.
- Launch PSPad and from the menu select Settings > Highlighters Settings…

- On the left pane, select and put a checkmark on the first <not assigned> item.

- Then on the User Highlighters list on the right pane, select PeopleCode.

- Go to the Colors tab. Here the color preferences to be used for syntax highlighting is set. To match the way the PeopleCode editor does highlighting, choose green for the comment; blue for Key, Key words 2, Key words 3 and Reserved Word; and red for String.

Usage
- Create a new document, from the menu File > New file… or using the following button:

- Paste the PeopleCode to the document:

- Select the text you want to copy. From the menu select File > Export > Export to Clipboard as RTF:

- Now, you can paste to an Office document and the formatting would be preserved.
Files
For SQR users, here’s a SQR.INI syntax file for PSPad.
August 20th, 2007 at 4:43 pm
works as a charm! To be complete note the precise color and text notations you did on the colors tab because there are more settings to be altered then just the ones you noted. But apart from that a great help in documentation….
April 11th, 2008 at 8:49 pm
Hey Joe, from where do you set the commnad line for running the SQR and so that next time you press the hotkey and it quickruns.
Also what is the way to set hotkey for say File > Export > Export as RTF. I dont want to click many keys and do this everytime.
Can we set it?
April 21st, 2008 at 4:25 pm
Thanks master!
June 23rd, 2008 at 10:21 pm
Excellent tip, thanks!