Getting content as HTML

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Ashton - Developer, Schema Solutions LLC
Avatar
Is it possible to get content out of the editor in an HTML format that would preserve the syntax coloring?

Basically similar to the Code Highlighter ASP.NET component you have but getting the contents of SyntaxEditor and making it into HTML but with the same syntax coloring that it has in the editor view?

I guess I could write my own to basically look at each token and it's editor style but didn't know if this was available as part of the control itself?

Thanks,

Ashton

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes there is a Document.GetTextAsHtml and I believe also a substring variation that does that.


Actipro Software Support

The latest build of this product (v2018.1 build 0342) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.