indentString

fun indentString(state: EditorState, cols: Int): String

Generate an indentation string for the given number of columns, using tabs if the state's indentUnit divides evenly, otherwise spaces.