#10763

ArthurZ
Participant

Not quite there, but the following variation is almost what I need, how to un-select a line?

if( document.selection.IsEmpty )
{
// highlight select and comment

editor.ExecuteCommandByID(4154); editor.ExecuteCommandByID(4371);
}
else
{
// uncomment
editor.ExecuteCommandByID(4372);
}