Table of Contents

Class BlockCommentStrategyBase

Namespace
Loehnert.Lisrt.Scripting.Editor.File
Assembly
Loehnert.Lisrt.Scripting.dll

Base class for a strategy to comment out some code.

public abstract class BlockCommentStrategyBase
Inheritance
BlockCommentStrategyBase
Inherited Members

Methods

CommentBlock(IEnumerable<TextSegment>, string)

Comment the selected segments out.

public virtual string CommentBlock(IEnumerable<TextSegment> selections, string text)

Parameters

selections IEnumerable<TextSegment>

The selections to comment out.

text string

Text of file.

Returns

string

The text with the out commented code.

CommentLine(Line, int)

Comments a single line out.

protected abstract string CommentLine(Line line, int indention)

Parameters

line Line

Line to comment out.

indention int

The indention of the comment.

Returns

string

The out commented text of the line.

UnCommentBlock(IEnumerable<TextSegment>, string)

Uncomment the selection.

public virtual string UnCommentBlock(IEnumerable<TextSegment> selections, string text)

Parameters

selections IEnumerable<TextSegment>

The selections to un comment.

text string

The text which contains the selections.

Returns

string

The uncommented text.

UnCommentLine(Line)

Uncomments a single line.

protected abstract string UnCommentLine(Line line)

Parameters

line Line

Line to uncomment.

Returns

string

The uncommented text of the line.