add syntax highlighting to declarations (fixes #12)

> If the replacement string is not the same length as the text it is replacing, the string will be adjusted accordingly.