Method SmartFormat
SmartFormat(ref Point, bool, int, ITextUndoList, string)
Formats block of text according to the parser rules.
public override bool SmartFormat(ref Point pos, bool useSpaces, int spacesInTab, ITextUndoList operations, string key)
Parameters
pos
PointPosition of the text
useSpaces
boolIndicates whether indentation string should contain spaces or tabs
spacesInTab
intSpecifies number of spaces in tab
operations
ITextUndoListList of the text changes.
key
stringKeystroke being typed.
Returns
SmartFormat(ref Point, ref Point, bool, int, bool, ITextUndoList)
Formats block of text according to the parser rules.
public override bool SmartFormat(ref Point start, ref Point end, bool useSpaces, int spacesInTab, bool extended, ITextUndoList operations)
Parameters
start
PointStart position of the block
end
PointEnd position of the block
useSpaces
boolIndicates whether indentation string should contain spaces or tabs
spacesInTab
intSpecifies number of spaces in tab
extended
boolSpecifies if whole syntax block containing start and end point should be formatted
operations
ITextUndoListList of the text changes.