Bandit, it is working fine on my board, what I presume is happening to you is the the edit lines that were there before you made the change use "small" for font size, and the new code looks for "font size" to replace it.
Are you getting more than 2 edit lines, if so then this is not the case.
If you delete the first edit line when you edit the post it should take care of itself afterwords if you are only getting 2.
Now maybe I am wrong about the preventing multiple lines code, I am no perl/cgi wiz, I read code below as the code to do the substitution, maybe they changed the code in 6.2 to prevent multiple edit lines and if so, then your code is fine for that, it just wont do the color part as you said?
[code][/code]