StringUtils.NormalizeIndentation

Strips any common white space from all lines of text that have the same common white space text. Effectively removes common code indentation from code blocks for example so you can get a left aligned code snippet.

public static string NormalizeIndentation(string code)

Parameters

code
Text to normalize


See also:

Class StringUtils

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic