markdown code blocks add shell commands #10184
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
See the manual for |
Beta Was this translation helpful? Give feedback.
-
Not all highlighting schemes (or hoghlight-styles as Pandoc calls them) color all token types. You may want to use another highlighting style. Read the manual first. If none of the builtin highlight styles is to your liking your best choice is to define youur own highlighting style. Print out the builtin one you want to modify with pandoc --print-highlight-style=STYLE > mystyle.json where STYLE is “pygments” or whatever you choose from the builtin ones. When you open the JSON file you will see something like this {
"text-color": null,
"background-color": null,
"line-number-color": "#aaaaaa",
"line-number-background-color": null,
"text-styles": {
"Alert": {
"text-color": "#ff0000",
"background-color": null,
"bold": true,
"italic": false,
"underline": false
}, where “Alert” and several others following it are token types. It is self-explanatory: you can change the the text color, background color and font styles of tokens. If you are like me you will need some actual colors to look at rather than experimenting with changing hex digita; the X11 colors page on Wikipedia is a good place to start. I don’t know if it is possible but I assume that if some token type in the marked-up code is missing in the style definition file I assume you can just add it. To use your custom style just use pandoc’s |
Beta Was this translation helpful? Give feedback.
Not all highlighting schemes (or hoghlight-styles as Pandoc calls them) color all token types. You may want to use another highlighting style. Read the manual first.
If none of the builtin highlight styles is to your liking your best choice is to define youur own highlighting style. Print out the builtin one you want to modify with
pandoc --print-highlight-style=STYLE > mystyle.json
where STYLE is “pygments” or whatever you choose from the builtin ones.
When you open the JSON file you will see something like this