Add support for FoldingText document