COMMENTS IN WPF EDITOR WITH HTMLSCRIPTPARSER

Hello,
we are using the WPF Editor with the HtmlScriptParser as Lexer.
We have two issues:
1. CSS comments are not highlighted in green (not highlighted at all)
2. When using Ctrl+K, Ctrl+C to comment the current selection within CSS or Javascript, the comment looks like an HTML comment and not like a Javascript comment.
Highlighting Javascript comments works tho, just not setting the comments via keyboard shortcut.

Regards
Is there a method in the TextSource class to comment (and uncomment) the current selection. So basically a method we can call to execute the comment/uncomment keyboard shortcuts
Hi Kai,
We currently do not have support for highlighting Css code in html code, but this should be fairly simple to implement.
We will provide you an sample shortly.
You can call Selection.CommentSelection method, which will comment out current selection with single or multi-line comment (this needs to be provided by parser):
https://drive.google.com/open?id=1IQye94nbCVoFMTKEKd-_5bJL1Cu3n0B8
regards,
Andrew
Hi Kai,
I've uploaded modified with support for CSS code highlighting in HTML:
https://drive.google.com/open?id=16_yC-O7St3lzUgBcUaeiyN4pbxG4pm1S
regards,
Andrew
Hi Andrew,

there are a few issues with the sample.
1. An infinite loop occurs if you delete the tag "" in line 15
2. Highlighting the CSS /*comments*/ still does not work. Currently the editor highlights comments within CSS that start with "//" like in JavaScript, but CSS comments should always look /*like this*/ even if single line.

Regards
Hi Kai,
thank you for the bug report.
I've uploaded fixed version.
https://drive.google.com/open?id=16_yC-O7St3lzUgBcUaeiyN4pbxG4pm1S
Please try them and let me know whether it works as expected.
regards,
Andrew
Hi Andrew,
it's better now, but there is still a highlighting issue regarding CSS attributes. If you highlight the line "text-align: center;" in the CSS and you use Ctrl+K, Ctrl+C to comment the attribute, then the comment will not be highlighted.
Regards
Should clarify:
we want the line "text-align: center;" to be displayed in green when changed to "/*text-align: center;*/"
Regards
Hi Kai,
I'm uploading modified CssParser:
https://drive.google.com/open?id=1JvDg6BdH0KSGihicY6gN1hY9kbFfXAbU
regards,
Andrew
Hi Andrew,
thank you, I think we have most of what we need for now.
Regards