Example #1
0
        public bool Comment()
        {
            TextArea      textArea = null;
            ToggleComment toggle   = null;

            try
            {
                textArea = this.textEditorControl1.ActiveTextAreaControl.TextArea;
                toggle   = new ToggleComment();
                toggle.Execute(textArea);
                return(true);
            }
            catch (Exception ex)
            {
                LogManager.Instance.WriteLog("ScriptEditForm.Comment", ex);
                return(false);
            }
        }
Example #2
0
        /// <summary>
        /// 選択範囲のコメント状態を切り変える
        /// (コメント中はコメント解除、コメントではないときはコメント化する)
        /// </summary>
        public void ToggleComment()
        {
            IEditAction action = new ToggleComment();

            action.Execute(ActiveTextArea);
        }
Example #3
0
        /// <summary>
        /// 将当前选中的脚本注释掉
        /// </summary>
        public void Comment()
        {
            ToggleComment toggle = new ToggleComment();

            toggle.Execute(this.textEditor1.ActiveTextAreaControl.TextArea);
        }