Class CssParserFormatterWrapper
java.lang.Object
de.funfried.netbeans.plugins.external.formatter.css.cssparser.CssParserFormatterWrapper
Delegation class to the CssParser formatter implementation.
- Author:
- bahlef
-
Method Summary
-
Method Details
-
format
@CheckForNull public String format(String code, int indent, boolean rgbAsHex, boolean useSingleQuotes, boolean useSourceStringValues) throws FormattingFailedException Formats the givencode
with the given configurations and returns the formatted code.- Parameters:
code
- the unformatted codeindent
- the indent to usergbAsHex
-true
to prefer hex over rgb, otherwisefalse
useSingleQuotes
-true
to prefer single quotes over double quotes, otherwisefalse
useSourceStringValues
-true
to use source string values, otherwisefalse
- Returns:
- the formatted code
- Throws:
FormattingFailedException
- if the external formatter failed to format the given code
-