Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Glimmer::Highlight::Formatter
Inherits
Reference
<
Object
Formatter applies theme styles to tokenized code.
Constants
GENERIC_ERROR_BG = {240, 91, 91}
GenericError has special background color
Class methods
format
(tokens :
Array
(
Token
), theme :
Style::Theme
, profile :
Style::ColorProfile
) :
String
Formats an array of tokens into a styled string.
Source