C# Class RazorPad.UI.Editors.DefaultFormattingStrategy

Inheritance: IFormattingStrategy
Datei anzeigen Open project: RazorPad/RazorPad

Public Methods

Method Description
FindSelectedCommentRegion ( ITextEditor editor, string commentStart, string commentEnd ) : BlockCommentRegion
FormatLine ( ITextEditor editor, char charTyped ) : void
IndentLine ( ITextEditor editor, IDocumentLine line ) : void
IndentLines ( ITextEditor editor, int begin, int end ) : void
SurroundSelectionWithComment ( ITextEditor editor ) : void

Protected Methods

Method Description
SurroundSelectionWithBlockComment ( ITextEditor editor, string blockStart, string blockEnd ) : void

Default implementation for multiline comments.

SurroundSelectionWithSingleLineComment ( ITextEditor editor, string comment ) : void

Default implementation for single line comments.

Method Details

FindSelectedCommentRegion() public static method

public static FindSelectedCommentRegion ( ITextEditor editor, string commentStart, string commentEnd ) : BlockCommentRegion
editor ITextEditor
commentStart string
commentEnd string
return BlockCommentRegion

FormatLine() public method

public FormatLine ( ITextEditor editor, char charTyped ) : void
editor ITextEditor
charTyped char
return void

IndentLine() public method

public IndentLine ( ITextEditor editor, IDocumentLine line ) : void
editor ITextEditor
line IDocumentLine
return void

IndentLines() public method

public IndentLines ( ITextEditor editor, int begin, int end ) : void
editor ITextEditor
begin int
end int
return void

SurroundSelectionWithBlockComment() protected method

Default implementation for multiline comments.
protected SurroundSelectionWithBlockComment ( ITextEditor editor, string blockStart, string blockEnd ) : void
editor ITextEditor
blockStart string
blockEnd string
return void

SurroundSelectionWithComment() public method

public SurroundSelectionWithComment ( ITextEditor editor ) : void
editor ITextEditor
return void

SurroundSelectionWithSingleLineComment() protected method

Default implementation for single line comments.
protected SurroundSelectionWithSingleLineComment ( ITextEditor editor, string comment ) : void
editor ITextEditor
comment string
return void