-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Basically have your code inject a style on load based off the user's preference from the base templates of the ~8000 different styles that highlight.js ships with. In your options, have the style also applied.
Do note to do this, you need to make the styles web-reachable in the manifest file using "web_accessible_resources" which just takes an array of strings to files. You just need to resolve the files on runtime using chrome.extension.getURL.
This would be a rather handy feature to have and it wouldn't take too long to implement. It also would allow people to be able to use their favorite code style.
For bonus points, add a preview system to the options page for each code style and/or allow custom definitions (which is something that would require storage privileges. I can't recall if you already ask for those or not [I would assume so]).