Hi,
I am attempting to add the ILineCommenter service to a syntax language (C#). From your examples it demonstrates single-line commenters and line-range commenters.
It seems that if i register both a single-line and line-range commenters to the syntax language, it only ever comments-out using line-range indicators (/* */) rather than single line commenting (//).
Is it possible to use both styles together? Obviously languages such as C# use both styles and so it would be nice for Syntax Editor to intelligently add line-comments depending on whether a single line or multiple lines are selected. How would i implement this please?
Thanks,
James
I am attempting to add the ILineCommenter service to a syntax language (C#). From your examples it demonstrates single-line commenters and line-range commenters.
It seems that if i register both a single-line and line-range commenters to the syntax language, it only ever comments-out using line-range indicators (/* */) rather than single line commenting (//).
Is it possible to use both styles together? Obviously languages such as C# use both styles and so it would be nice for Syntax Editor to intelligently add line-comments depending on whether a single line or multiple lines are selected. How would i implement this please?
Thanks,
James