Page 1 of 1

Is there an example of how to use Hidden Text?

Posted: Sat Nov 12, 2011 1:41 am
by kkaw
Is there an example of how to use hidden text?

I have javascripts, comments and processing instructions embedded in my HTML documents from a text editor. I like to edit this document in rvEdit but the embedded text need to be preserved when I load and save from rvEdit.

Posted: Mon Nov 14, 2011 5:43 pm
by Sergey Tkachenko
Sorry, there is no demo for using hidden text.
In RichViewActions, there is TRVActionHide that makes the selected text hidden or not. And TrvActionShowSpecialCharacters, among other features, shows/hides hidden text.

You can make the text hidden in the same way as you apply any other text property. Include/exclude rvteoHidden from the Options of text style.
For HTML code, consider also rvteoHTMLCode option.

Posted: Mon Nov 14, 2011 8:00 pm
by kkaw
I can see the effects of TrvActionHide and TrvActionShowSpecialCharacters with the ActionsDemo.

Where do I set the Include/Exclude rvteoHidden options of Text Style and rvteoHtmlCode option?

If I use the rvHtml Demo, how can I make the hidden text visible and how do I export the imported text. Do I use saveHtml or saveHtmlEx?

Posted: Thu Nov 17, 2011 1:44 am
by kkaw
Sergey,

Please help. This is a show stopper for me.

KK Aw

Posted: Thu Nov 17, 2011 4:44 pm
by Sergey Tkachenko
Do you want to read this hidden text from HTML?
If yes, I do not know how to implement it, because I do not know how to distinguish your HTML fragment from the rest of HTML code.

Posted: Thu Nov 17, 2011 11:53 pm
by kkaw
What if I use the <? ... ?> construct in place of comments in my HTML codes?