set the text and outlining node

CodeHighlighter for ASP.NET Forum

The latest build of this product (v4.0.59) was released 13 years ago, which was before this thread was created.
Posted 13 years ago by ZhangKui
Version: 4.0.59
Avatar
I want to know how to set the text to display when an outlining node is collapsed,
i also need to set the collapsible area just from start token to end token,
not start with "{",then end with "}",in one code,it appears just onece.

i'm a chinese,my english is poor,if you can't understand my question,i will give some pictures later,my email:zkwin123@163.com

by the way ,it seems that this Forums doesn't support to upload pictures.

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi ZhangKui,

You have to use a code-behind class for your language to achieve outlining. The samples show how to set the collapsed text (such as in the CssDynamicSyntaxLanguage.SetOutliningNodeCollapsedText method) and the documentation talks about how to wire up code-behind classes to languages via an attribute on the root SyntaxLanguage tag in the xml file.

The outlining nodes are built based on recognizing two tokens, a start and an end. There isn't really a way to add outlining nodes unless you have a start and end token pair available.


Actipro Software Support