io.exoquery.Base.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pprint-kotlin Show documentation
Show all versions of pprint-kotlin Show documentation
Pretty Printing for Kotlin
package io.exoquery
import io.exoquery.fansi.Attrs
import io.exoquery.fansi.Color
import io.exoquery.pprint.PPrinter
import io.exoquery.pprint.PPrinterConfig
fun pprint(
value: Any?,
defaultWidth: Int = 100,
defaultHeight: Int = 500,
defaultIndent: Int = 2,
defaultEscapeUnicode: Boolean = false,
defaultShowFieldNames: Boolean = true,
colorLiteral: Attrs = Color.Green,
colorApplyPrefix: Attrs = Color.Yellow,
showGenericForCollections: Boolean = true
) = PPrinter(
PPrinterConfig(
defaultWidth,
defaultHeight,
defaultIndent,
defaultEscapeUnicode,
defaultShowFieldNames,
colorLiteral,
colorApplyPrefix,
showGenericForCollections
)
)(value)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy