-
-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Description
Could look something like this:
require 'colorizer'.setup {
'*';
user_patterns = {
'LaTeXHTML' = {
'type' = 'RRGGBB',
'pattern' = '\\{HTML\\}\\{([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})\\}',
},
}
}In the above example we add a list of user-defined patterns. Each pattern gets a name (in this case there's only one, namely "LaTeXHTML") and a regex to match, where the specification for the regex is given by the type (e.g. RBG, RRGGBB, RRGGBBAAm etc.).
leana8959, bbb651, AlexTuft and daniel-beard
Metadata
Metadata
Assignees
Labels
No labels