Table of Contents

Method SmartFormat

Namespace
Alternet.Syntax.Parsers.TextMate
Assembly
Alternet.Syntax.Parsers.TextMate.v10.dll

SmartFormat(ref Point, bool, int, ITextUndoList, string)

Formats block of text according to the parser rules.

public override bool SmartFormat(ref Point pos, bool useSpace, int spacesInTab, ITextUndoList operations, string key = "")

Parameters

pos Point

Position of the text

useSpace bool

Indicates whether indentation string should contain spaces or tabs

spacesInTab int

Specifies number of spaces in tab

operations ITextUndoList

List containing insertion or deletion of text fragments.

key string

Keystroke being typed.

Returns

bool

True if succeed; otherwise false.