Posted 20 years ago
by tobias weltner
Let's say I have two constructs that support code folding:
{ } and <% %>
When I write this:
{
<%
}
and then examine "<%", its node property "isOpen" returns false although this node really is open, isn't it?
Also, how would I find the first child node (in this case "<%") given the parent node (in this case "{")?
Background of this question is that I'd like to support autocomplete for code blocks. To do that, I first need to examine whether the block is incomplete. For this, I'd like to use "isOpen", but if it returns false for all child nodes, this wouldn't work.
{ } and <% %>
When I write this:
{
<%
}
and then examine "<%", its node property "isOpen" returns false although this node really is open, isn't it?
Also, how would I find the first child node (in this case "<%") given the parent node (in this case "{")?
Background of this question is that I'd like to support autocomplete for code blocks. To do that, I first need to examine whether the block is incomplete. For this, I'd like to use "isOpen", but if it returns false for all child nodes, this wouldn't work.