HighlightStyle

public enum HighlightStyle : Int

HighlightStyle type, default is .Yellow.

  • Declaration

    Swift

    case yellow
  • Declaration

    Swift

    case green
  • Declaration

    Swift

    case blue
  • Declaration

    Swift

    case pink
  • Declaration

    Swift

    case underline
  • Declaration

    Swift

    public init()
  • Return HighlightStyle for CSS class.

    Declaration

    Swift

    public static func styleForClass(_ className: String) -> HighlightStyle
  • Return CSS class for HighlightStyle.

    Declaration

    Swift

    public static func classForStyle(_ style: Int) -> String
  • Return CSS class for HighlightStyle.

    Declaration

    Swift

    public static func colorForStyle(_ style: Int, nightMode: Bool = false) -> UIColor