Class CssParserFormatterWrapper

java.lang.Object
de.funfried.netbeans.plugins.external.formatter.css.cssparser.CssParserFormatterWrapper

public final class CssParserFormatterWrapper extends Object
Delegation class to the CssParser formatter implementation.
Author:
bahlef
  • Method Details

    • format

      @CheckForNull public String format(String code, int indent, boolean rgbAsHex, boolean useSingleQuotes, boolean useSourceStringValues) throws FormattingFailedException
      Formats the given code with the given configurations and returns the formatted code.
      Parameters:
      code - the unformatted code
      indent - the indent to use
      rgbAsHex - true to prefer hex over rgb, otherwise false
      useSingleQuotes - true to prefer single quotes over double quotes, otherwise false
      useSourceStringValues - true to use source string values, otherwise false
      Returns:
      the formatted code
      Throws:
      FormattingFailedException - if the external formatter failed to format the given code