Skip to content

Suggestion: Markdown settings for highlightjs theme #9136

Closed

Description

@jods4

The markdown extension uses highlight.js for code highlighting, which comes with many themes inside its styles folder.

Yet, the default theme (tomorrow.css) is hardcoded here:
https://github.com/Microsoft/vscode/blob/master/extensions/markdown/src/extension.ts#L237

It is possible to override this by finding and copying the theme you like into your project and referencing the file with markdown.styles settings. This work but it's not easy/intuitive and it does not actually remove the tomorrow rules/stylesheet from the document (which can provide some unwanted defaults).

I suggest that you make the default theme easily changeable with a new settings, maybe markdown.highlightStyle: "tomorrow" and support all the hightlight.js built-in styles.

BTW I think tomorrow is a very colorful choice for a default settings, but that's just my taste.

Activity

  1. added
    feature-request
    markdown-ext
    on Sep 27, 2016
  2. mjbvz commented on May 2, 2017

    @mjbvz
    Contributor

    Closing in favor of #22916 Let me know if you are interested in developing a markdown extension that can provide this functionality

  3. jods4 commented on May 2, 2017

    @jods4
    Author

    Sorry, I don't have the time to look into VS Code extensions, although that looks like an exciting area.

    If I had more time, I would surely try to add AsciiDocs support. There are some extensions in the market place but only one supports preview and it needs a globally installed Python AsciiDoctor, even though a perfectly fine AsciiDoctor.js exists!?

    I've recently come to love AsciiDocs as a much better LML than Markdown.

  4. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestmarkdown-ext

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions