rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
583 stars 72 forks source link

Use local Prism.js & support more languages #26

Closed nicoespeon closed 1 year ago

nicoespeon commented 1 year ago

Fixes #15

Example with JSON:

Before After
before after

Note that I reverted the diff colors to Prism default. The CSS variables used seem not to be set in most themes. Default colors is better than no colors 😄

@lgrammel I'll let you add some settings so the user could decide to switch between Prism default colors, or their theme colors (if they are lucky enough to use a theme that sets these). I would still default on Prism colors to ensure everyone has basic syntax highlighting though.