#include "slick.sh" _command comment_selection() name_info(','VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL) { if (_get_selinfo( start_col, end_col, buf_id )) { _message_box( "No selection" ); return 0; } _begin_select( "" ); _save_pos2( p ); while (1) { _begin_line(); c_slash(); c_slash(); down( 1 ); if (!_end_select_compare( "" )) { break; } } deselect(); _restore_pos2( p ); } _command uncomment_selection() name_info(','VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL) { if (_get_selinfo( start_col, end_col, buf_id )) { _message_box( "No selection" ); return 0; } _begin_select( "" ); _save_pos2( p ); while (1) { _begin_line(); _delete_char(); _delete_char(); down( 1 ); if (!_end_select_compare( "" )) { break; } } deselect(); _restore_pos2( p ); }