Class PrettyPrintWriter
- Namespace
- NMF.AnyText.PrettyPrinting
- Assembly
- NMF.AnyText.Core.dll
Denotes a helper class to pretty-print texts
public class PrettyPrintWriter
- Inheritance
-
PrettyPrintWriter
- Inherited Members
Constructors
PrettyPrintWriter(TextWriter, string)
Creates a new instance
public PrettyPrintWriter(TextWriter inner, string indentString)
Parameters
inner
TextWriterthe inner text writer
indentString
stringthe indentation string
Methods
Indent()
Increase the indentation level
public void Indent()
SupressSpace()
Supresses rendering a space character before the next token
public void SupressSpace()
Unindent()
Decrease the indentation level
public void Unindent()
WriteNewLine()
Writes a newline to the underlying writer
public void WriteNewLine()
WriteToken(string, bool)
Writes the given token to the underlying writer
public void WriteToken(string token, bool appendSpace)