Example #1
0
 public void UncommentSelectedLines()
 {
     SelectFullLines();
     if (SelectedText.TrimStart().StartsWith(COMMENT_DELIM_SLASH))
     {
         SelectedText = rxUncommentSlashes.Replace(SelectedText, "$1");
     }
     if (SelectedText.TrimStart().StartsWith(COMMENT_DELIM_DASH))
     {
         SelectedText = rxUncommentDashes.Replace(SelectedText, "$1");
     }
 }
Example #2
0
 public void UncommentSelectedLines()
 {
     SelectFullLines();
     if (SelectedText.TrimStart().StartsWith(COMMENT_DELIM_SLASH, StringComparison.InvariantCultureIgnoreCase))
     {
         SelectedText = rxUncommentSlashes.Replace(SelectedText, "$1");
     }
     if (SelectedText.TrimStart().StartsWith(COMMENT_DELIM_DASH, StringComparison.InvariantCultureIgnoreCase))
     {
         SelectedText = rxUncommentDashes.Replace(SelectedText, "$1");
     }
 }