userReservedWords property

Map<String, Set<String>> userReservedWords
getter/setter pair

additional reserved words to be used by user just add reserved words in top level function once and use it anywhere in any instance of AnySyntaxHighlighter for example using html elements as reserved words:- void main(){ ReservedWords.userReservedWords['html'] = { 'html', 'div', 'body', 'head'} } Now use it anywhere by using:- AnySyntaxHighlighter( '<html>\n<head>\n</head>\n<body>\n<body>\n</html>', reservedWordSets: const ['html'], )

Implementation

static Map<String, Set<String>> userReservedWords = {};