Posted 18 years ago
by Zahra Akbari
Hi
i'm trying to use multi languge feature in "XML language " , why this code not work successfully?
<State Key="ExpressionStartTagState" TokenKey="ExpressionStartTagDefaultToken" Style="TagNameStyle">
<Scopes>
<Scope>
<ExplicitPatternGroup Type="StartScope" TokenKey="ExpressionStartTagStartToken" Style="TagDelimiterStyle" PatternValue="<"
LookAhead="call {LineTerminatorWhitespaceMacro}* target=" />
<RegexPatternGroup Type="EndScope" TokenKey="StartTagEndToken" Style="TagDelimiterStyle" PatternValue="\"" />
<StateTransition Filename="Expression.xml" ChildLanguageBackColor="WhiteSmoke">
<ExplicitPatternGroup TokenKey="ExpressionEndTagStartToken" Style="TagDelimiterStyle" PatternValue="\"" />
</StateTransition>
</Scope>
</Scopes>
<ChildStates>
<ChildState Key="StartTagAttributeState" />
</ChildStates>
</State>
-also , i define <ChildState Key="ExpressionStartTagState" /> in "defaultState "-
i'm trying to use multi languge feature in "XML language " , why this code not work successfully?
<State Key="ExpressionStartTagState" TokenKey="ExpressionStartTagDefaultToken" Style="TagNameStyle">
<Scopes>
<Scope>
<ExplicitPatternGroup Type="StartScope" TokenKey="ExpressionStartTagStartToken" Style="TagDelimiterStyle" PatternValue="<"
LookAhead="call {LineTerminatorWhitespaceMacro}* target=" />
<RegexPatternGroup Type="EndScope" TokenKey="StartTagEndToken" Style="TagDelimiterStyle" PatternValue="\"" />
<StateTransition Filename="Expression.xml" ChildLanguageBackColor="WhiteSmoke">
<ExplicitPatternGroup TokenKey="ExpressionEndTagStartToken" Style="TagDelimiterStyle" PatternValue="\"" />
</StateTransition>
</Scope>
</Scopes>
<ChildStates>
<ChildState Key="StartTagAttributeState" />
</ChildStates>
</State>
-also , i define <ChildState Key="ExpressionStartTagState" /> in "defaultState "-