Hi, i need in the the HTML-language the support for PHP with that code:
<div><?php echo "text"; ?></div>For this i add this in the HTML-Language:
<State Key="PhpStartTag" DefaultTokenKey="StartTagText" DefaultClassificationTypeKey="XmlComment"><State.Scopes><Scope><Scope.StartPatternGroup><ExplicitPatternGroup TokenKey="PhpStartDelimiter" ClassificationTypeKey="XmlDelimiter" Pattern="<?php" /></Scope.StartPatternGroup><Scope.EndPatternGroup><ExplicitPatternGroup TokenKey="PhpEndDelimiter" ClassificationTypeKey="XmlDelimiter" Pattern="?>" /></Scope.EndPatternGroup><Scope.Transition><StateTransition><StateTransition.ChildLanguage><LanguageRef ManifestResourceStreamName="UWS_ServerManager.SyntaxEditor.Definitions.Php.langdef" /></StateTransition.ChildLanguage><StateTransition.ChildScope><Scope><Scope.EndPatternGroup><RegexPatternGroup TokenKey="PhpEndDelimiter" ClassificationTypeKey="XmlDelimiter" Pattern="?>" /></Scope.EndPatternGroup></Scope></StateTransition.ChildScope></StateTransition></Scope.Transition></Scope></State.Scopes><RegexPatternGroup Pattern="[^(<\?php)(\?>)]+" /></State>
<?php and ?> it will print in the XmlDelimiter-Color, but the content with the XmlComment -Color.
When i use complete tags like <php></php>, then it will run, but these is wrong of course^^
What am I doing wrong?
Thanks in advance!