User highlighters

How to create user highlighter

Open the user highlighter dialog by selecting Settings menu > User Highlighter.

Highlighter definition
  1. Load highlighter definition for folder .\PSPad\Syntax.
  2. Fill Name.
  3. Fill File Types, Comma Delimited. Comma delimited extension list of file types (*.bat, *.log, ...)
  4. Select Comment Style. Specification of comment styles used in your language. You can combine several styles together.
  5. Choose string identifiers of double and/or single quotes.
  6. Check Preprocessors. Contains special parts of code, usually compiler directives, usually proceeded with a # symbol.
  7. Fill word word list.
  8. Fill word word list.
  9. Save highlighter definition. User highlighter's are saved in the .\PSPad\Syntax folder.

How to tell PSPad to use new highlighter
  1. Select Settings menu > Highlighter settings.
  2. Select Specification tab.
  3. On the left (highlighter) list, click on one of three bolded highlighters.
  4. On the right side is list of user highlighters, select the one you created and click on it.

Color settings for highlighter

If you need change the font and colors for highlighter attributes, go to tab "Colors" and set the colors and font styles you want. If active document corresponds with highlighter you are modifying, you will immediately see the changes you make. (See Working with Color)



Definition file structure description

; Comments, are ignored
; Bold in brackets are section name
[Settings]
; File name
Name=OtherCad
; List of file extension
FileType=*.prg,*.bpk
; Comments settings (optional) 1 = Yes, 0 = No
ANSIComment=0
PasComment=0
CComment=0
SpecComment=1
BasComment=0
SingleQuote=0
Preprocessors=0
....
; List of keywords and reserved words
; Include the = sign at the end of each word.

[KeyWords]
ABS=
ACOS=
ATN=
BOOLEAN=
[ReservedWords]
BOOLEAN=
INTEGER=
STRING=