vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
813 stars 129 forks source link

Styling the preview pane #764

Closed arturhun closed 4 years ago

arturhun commented 5 years ago

Please correct me if I am wrong: when writing a markdown document, the writing pane style is governed by Preferences | Editor | Color Scheme | Markdown, but can the preview pane be customized?

I would like to be able to define some basic styling properties, such as

with distinction of text and code blocks.

Is it something that can be achieved now? If so, which page in the settings is responsible for that?

vsch commented 5 years ago

@arturhun, the preview pane is HTML so it uses stylesheets. There are 2 options included in the plugin for JavaFX: default and dark. JavaFX can also use the Swing style sheets which results in much simplified rendering.

To override the default CSS you need to change individual elements or the whole CSS.

There is more information on this in the wiki: Customizing-HTML-Preview

arturhun commented 5 years ago

Oh I see. What I was fooled by was naming. As I had previously used the bundled Markdown plugin, I was looking into Other Settings tab, and then when I looked into Language and Frameworks, I assumed that the Markdown item only applies to that JetBrains plugin.

Might be that a toolbar icon to directly access Settings would have helped me ;-) Thanks, can be closed.

vsch commented 4 years ago

I will add a toolbar button for settings.

vsch commented 4 years ago

Settings button was added in version 2.9.9.