Different visual text from stored text

SyntaxEditor for WPF Forum

Posted 9 years ago by David Buksbaum
Version: 12.1.0561
Avatar

Is it possible to display different text than what is stored in the backing store based on parsing?

For example, assuming a markdown parser:

Raw Text: **Markdown** 

Visual Text: Markdown

 

Thanks

David

Comments (2)

Answer - Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi David,

Based on your recent questions, it sounds like you might be looking for a WYSIWYG editor instead of a code editor, which is what SyntaxEditor is.  But to answer your question, you can use a technique like our "Collapsed Regions - Advanced" QuickStart, which shows how to collapse a region of text and replace it with an adornment, that could be a text sequence.  The whole adornment would be selectable as a whole.


Actipro Software Support

Posted 9 years ago by David Buksbaum
Avatar

Not truly WYSIWYG, or at least not for the whole text. I am looking to improve the non-code blocks of text. For example, formatting the comments between code blocks such that the headers are richly formatted.

I will take a look at the adornments.

Thanks

The latest build of this product (v21.1.2) was released 25 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.