Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rich Text Format Tags for Hiding and Un-hiding

Tags:

hide

richtext

rtf

I would like to hide part of the text in my RichTextBox. I know that \v is the start of a hiding section. But how do I unhide ? For example if I want to hide the word "big" in the string "hello big world" so that "hello world" is visible:


text              : "hello big world"
RTF so far        : "hello \v big world"
result            : "hello "
wanted result  -> : "hello  world"
doesn't work      : "hello \v big\v  world"


Is there a way ?
like image 618
Bitterblue Avatar asked Jan 15 '13 13:01

Bitterblue


People also ask

What are rich text tags?

Rich Text is a subset of the tags used to format HTML pages. It can be used to format the text of several User Language Dialog objects, in the #usage directive or in the description of library objects. Text is considered to be Rich Text if the first line contains a tag.

What is Rich Text Format in word?

RTF stands for Rich Text Format and is a universal document file format and is easily read by many of the word-processing packages. It is particularly useful to those using a different word-processing package from those used on campus.


2 Answers

Solution by Alex K. is probably better but I'm adding this solution I just found because it also works. \plain resets the text style back to defaults:

hello \v big\plain  world

Yet another solution (actually used by the RichTextBoxes): \v0 disables just the hiding

hello \v big\v0  world
like image 161
Bitterblue Avatar answered Sep 23 '22 07:09

Bitterblue


You need to use curly braces to group the code;

"hello {\v big} world"
like image 44
Alex K. Avatar answered Sep 21 '22 07:09

Alex K.