java.lang.Object
org.aya.pretty.printer.Stylist
org.aya.pretty.backend.string.StringStylist
org.aya.pretty.backend.string.ClosingStylist
org.aya.pretty.backend.html.Html5Stylist
- Direct Known Subclasses:
MdStylist
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.aya.pretty.backend.string.ClosingStylist
ClosingStylist.Delegate, ClosingStylist.StyleToken -
Field Summary
FieldsFields inherited from class org.aya.pretty.printer.Stylist
colorScheme, styleFamily -
Constructor Summary
ConstructorsConstructorDescriptionHtml5Stylist(@NotNull ColorScheme colorScheme, @NotNull StyleFamily styleFamily) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StringcolorsToCss(@NotNull ColorScheme colorScheme) static @NotNull StringcssColor(int rgb) static @NotNull Stringprotected @NotNull ClosingStylist.StyleTokenformatBold(EnumSet<StringPrinter.Outer> outer) protected @NotNull ClosingStylist.StyleTokenformatColorHex(int rgb, boolean background) protected @NotNull ClosingStylist.StyleTokenformatItalic(EnumSet<StringPrinter.Outer> outer) protected @NotNull ClosingStylist.StyleTokenformatStrike(EnumSet<StringPrinter.Outer> outer) protected @NotNull ClosingStylist.StyleTokenstatic @NotNull StringnormalizeCssId(@NotNull String selector) static @NotNull kala.collection.immutable.ImmutableSeq<String>styleKeyToCss(@NotNull String className) static @Nullable StringstyleToCss(@NotNull Style style) Methods inherited from class org.aya.pretty.backend.string.ClosingStylist
format, formatCustom, formatPresetColor, formatPresetStyle
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Html5Stylist
public Html5Stylist(@NotNull @NotNull ColorScheme colorScheme, @NotNull @NotNull StyleFamily styleFamily)
-
-
Method Details
-
formatItalic
@NotNull protected @NotNull ClosingStylist.StyleToken formatItalic(EnumSet<StringPrinter.Outer> outer) - Specified by:
formatItalicin classClosingStylist
-
formatBold
@NotNull protected @NotNull ClosingStylist.StyleToken formatBold(EnumSet<StringPrinter.Outer> outer) - Specified by:
formatBoldin classClosingStylist
-
formatStrike
@NotNull protected @NotNull ClosingStylist.StyleToken formatStrike(EnumSet<StringPrinter.Outer> outer) - Specified by:
formatStrikein classClosingStylist
-
formatUnderline
@NotNull protected @NotNull ClosingStylist.StyleToken formatUnderline(EnumSet<StringPrinter.Outer> outer) - Specified by:
formatUnderlinein classClosingStylist
-
formatColorHex
- Specified by:
formatColorHexin classClosingStylist
-
styleKeyToCss
@NotNull public static @NotNull kala.collection.immutable.ImmutableSeq<String> styleKeyToCss(@NotNull @NotNull String className) - See Also:
-
styleToCss
-
colorsToCss
-
cssVar
-
cssColor
-
normalizeCssId
Thank you! ISO 10646 character listingsIn CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit. Identifiers can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier "Binvalid input: '&W'?" may be written as "B\invalid input: '&W'\?" or "B\26 W\3F".
-