Toggle regions of the buffer with different text snippets