Posted 16 years ago
by ernesto
Trying to move my line comments over 1 character in the Editor.SelectedView.CommentLines method
If I see an exclamation ! at the beginning of the line when commenting out lines I want to move the comment character to the right one space. My comment character is the apostrophe '
Before commenting the line:
!This is a line to comment
After commenting the line, this is my goal:
!'This is a line to comment
This is what I have in my VB codeThis is what I have in my XML language file
Thanks for any help
If I see an exclamation ! at the beginning of the line when commenting out lines I want to move the comment character to the right one space. My comment character is the apostrophe '
Before commenting the line:
!This is a line to comment
After commenting the line, this is my goal:
!'This is a line to comment
This is what I have in my VB code
Select Case Operation
Case AppOperation.LinesComment
editor.SelectedView.CommentLines()
Case AppOperation.LinesUnComment
editor.SelectedView.UncommentLines()
End Select
<!-- Comments -->
<State Key="CommentState" TokenKey="CommentDefaultToken" Style="CommentDefaultStyle">
<!-- Scopes -->
<Scopes>
<Scope>
<ExplicitPatternGroup Type="StartScope" TokenKey="CommentStartToken" Style="CommentDelimiterStyle" PatternValue="'" />
<RegexPatternGroup Type="EndScope" TokenKey="CommentEndToken" Style="CommentDelimiterStyle" PatternValue="{LineTerminatorMacro}" IsWhitespace="True" />
</Scope>
</Scopes>
</State>