Is there an example of how to use Hidden Text?

General TRichView support forum. Please post your questions here
Post Reply
kkaw
Posts: 6
Joined: Wed Nov 09, 2011 9:50 am
Location: Malaysia

Is there an example of how to use Hidden Text?

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17572
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
kkaw
Posts: 6
Joined: Wed Nov 09, 2011 9:50 am
Location: Malaysia

Post 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?
kkaw
Posts: 6
Joined: Wed Nov 09, 2011 9:50 am
Location: Malaysia

Post by kkaw »

Sergey,

Please help. This is a show stopper for me.

KK Aw
Sergey Tkachenko
Site Admin
Posts: 17572
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
kkaw
Posts: 6
Joined: Wed Nov 09, 2011 9:50 am
Location: Malaysia

Post by kkaw »

What if I use the <? ... ?> construct in place of comments in my HTML codes?
Post Reply