add hooks to strip whitespace from C-like and scala languages