Posted 12 years ago
by Kasper Tanggaard
Version: 11.2.0552
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
![Avatar](https://secure.gravatar.com/avatar/d346e676a0f8755b458a98a2e7aaaa76.jpg?s=64&d=identicon&r=g)
Hi,
When using the CommentLines edit action, it seems that it uses the comment implementation of the Document.Language, without respecting a potential child language. So for instance, when i have an HTML file with inline JavaScript, the it uses the commenter for HTML, even though only JavaScript lines are selected. The action is also only enabled if there is a LineCommenter registered for the HTML language, when it probably should look at the child syntax language, I think :)
When using the CommentLines edit action, it seems that it uses the comment implementation of the Document.Language, without respecting a potential child language. So for instance, when i have an HTML file with inline JavaScript, the it uses the commenter for HTML, even though only JavaScript lines are selected. The action is also only enabled if there is a LineCommenter registered for the HTML language, when it probably should look at the child syntax language, I think :)