Fix bugs with preview, add syntax highlighting, and add rangy back in.