OK - a new day and freshly charged brain cells has helped!

Adding those characters to the $Ops string was only part of the process. They needed to be added to the two termination strings as well ($T1 & $T2) as well.

With the newest code, all of the operators are now colorized as expected. Further, treating the "& " sequence as a bitwise operator allowed me to process the "&" character that is followed immediately by non-space chars as a number lead-in. Both numbers and Hex values are displayed using the number format attributes. Note that actual checking of hex values is NOT performed, and "&FunnyStuff" would be formatted as a hex number. This ain't the Sanity function after all. ;\)

Latest ZIP is on the web site as before. I used the following simple but nonsensical Kix script to validate the attribute processing:
 Code:
; sample file to test PostPrep

Quit 0	; don't allow this to actually run!

Break On

; numbers and variables
; logic operators
If $A > 2 Or $A < 5 And Not $A = 3
; bitwise operators
  $A = $A & 5 | 1
  $A = $A ^ 2
  $A = $A ~ 2
EndIf

; commands and functions with single and double-quoted strings
If Exist('file')
  "found!"
Else
  $ = RedirectOutput('file')
  "No longer an empty file!" + @CRLF
  $ = RedirectOutput('')
EndIf

; numbers, math operators, & Mod
$A = 3 + 5 - 2 * 4 / 7
$A = $A Mod 5

/*
Block
comment
*/

; Hex values
$A = &C7

; Macros
@TIME ?
The latest Kix2Htm should be published on our web site's UFL library after 10pm EST today.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D