Code::Blocks comes with light theme by default and not all users like it. There is no option to change the editor theme is Code::Blocks however we can change it manually. Here is how to install Code::Blocks themes.
First you need to download the themes, download it from here: Code::Blocks Theme. Then extract it on the desktop. Close the CodeBlocks application before opening CB Share Config. CB Share Config is a tool that installs along with CodeBlocks. It can be found in Program list.
default.conf is located at /Library/Application Support/codeblocks/default.conf and cb_share_config is under CodeBlocks.app/Contents/MacOS/cb_share_config. The Library folder is by default hidden by the most recent version of Mac OX. You could use COMMAND+SHIFT+G to navigate to hidden folders.
I just wanted to humbly request a feature that allows users to choose the light/dark theme for their code blocks too as people who prefer reading regular text in light mode can have a contrasting subjective preference to have code blocks in dark mode when rendered in the pdf.
This could be done in the export window for pdfs if the parser detects the first code block in the document or Obsidian can store that a code block exists as an attribute for the .md file. Otherwise having a toggle in the settings will also do the job. Just like separate stores for themes and plugins, you can have a separate storefront for code blocks themes in the editor and pdf
a recent update to Obsidian applied light theme to code blocks in exported .pdfs regardless of the selected base color, due to my disabilities I find it extremely challenging to work with light-themed code blocks due to lack of contrast, I have never done .css, any way to get dark colored code blocks in the exported .pdf back without .css modifications?
I export org-mode files quite often, and almost all of them have code in them. When I do export code, it ends up coloring the text depending on my theme, however, I switch between a dark theme and a light theme regularly. In the case of the light theme, the blocks need to have a light background, and for a dark theme they need to have a dark background (otherwise I end up with light yellow text on a greyish background and it's unreadable).
Because a Prism theme is just a JS object, you can also write your own theme if you are not satisfied with the default. Docusaurus enhances the github and vsDark themes to provide richer highlight, and you can check our implementations for the light and dark code block themes.
You can set your own background color for highlighted code line in your src/css/custom.css which will better fit to your selected syntax highlighting theme. The color given below works for the default highlighting theme (Palenight), so if you are using another theme, you will have to tweak the color accordingly.
If you use number ranges in metastring (the 1,3-4 syntax), Docusaurus will apply the first magicComments entry's class name. This, by default, is theme-code-block-highlighted-line, but if you change the magicComments config and use a different entry as the first one, the meaning of the metastring range will change as well.
Instead of implementing a dedicated component for multi-language support code blocks, we've implemented a general-purpose component in the classic theme so that you can use it for other non-code scenarios as well.
Specifies the color scheme used for displaying your code block. Many of these themes are based on the default color schemes of popular integrated development environments (IDEs). The default theme is Confluence (also known as Default), which is typically black and colored text on a blank background. However, you can also choose from one of the following other popular themes:
You can configure the Code Block macro to use a specific language and theme by default and also upload new languages. You need Confluence Administrator permissions to change the default theme and language and System Administrator permissions to upload new languages.
I believe I got this fixed. Had to do some css overrides in the theme backend, which was more difficult than I thought. Should be readable in both themes now. Feel free to follow-up some syntax highlighting is still messed up. Thanks for the ping @bigyihsuan
By default code blocks are rendered with a left border whose color is derived from the current theme. You can customize code chunk appearance with some simple options that control the background color and left border. Options can either be booleans to enable or disable the treatment or can be legal CSS color strings (or they could even be SASS variable names!).
In addition to the built in themes available for syntax highlighting, you can also specify your own syntax highlighting by providing the path to a valid theme file (which is based upon the KDE XML syntax highlighting descriptions). Highlighting is implemented using skylighting.
Note that as with adaptive text higlighting themes, when you provide a dark and light highlight-style, background colors specified in the themes will be ignored in favor of the overall theme specified background colors.
It provides guidance for achieving a dark theme for win32 apps.
It does not explicitly mention winapi or wxWidgets so I do not know if it is new information and therefore relevant to the "wont fix" status of this feature request.
I'm using the built-in dark mode in Flarum, but the syntax highlighting doesn't seem to change its colors compared to the light mode. This makes it hard to read most of the colors. Is this a known bug?
bbaovanc I don't know if that's a bug, it's more of a "non-feature". The code blocks are currently not aware of the dark or light mode. Code highlighting is performed by the highlight.js library and we currently don't provide that library any information about dark mode.
I know highlight.js has multiple themes, so I suppose there would be a way to change the theme. I think we just use the default highlight.js theme all of the time currently. I don't remember whether anyone implemented an extension to change it manually.
There are two annoying features of the default theme. The major one is the incorrect line breaks for code blocks in the editor, which makes editing multiline code blocks to fit into the site without horizontal scroll bars way too cumbersome. The minor one is the nonexistence of a proper output style and a rather disgusting color for blockquotes.
The default theme is nice during the day, but after sun set, in low light conditions, or a long day in front of the screen it feels very bright. Therefore I created a dark theme that's much easier on my eyes, especially when I just want to read some posts or the chat.
It is available as MathematicaStackexchange_DarkStyle on
This theme grew incrementally by adding new instructions whenever I encountered something that did not yet look nice. Therefore, there are probably parts of the site that don't fit into this theme. There might also be some inconsistencies and bad css and design styles. I even left some of the shadow boxes that are part of the default theme in this style, because I found them so ridiculous that they are almost funny.
This projectdemonstrates how reStructuredText markuplooks like when rendered with thesphinx_typo3_theme.The focus is on technical aspects and behaviour. It is used for themetesting. Everything in here "should work".NOTE: This project DOES NOT show TYPO3 best practices. The purpose is(a) to demonstrate what the theme can handle and(b) to serve as a test for the theme.
By using the HTML element with the prefers-color-scheme media feature, you can add an image that changes depending on whether a visitor is using light or dark mode. For more information, see "Managing your theme settings."
df19127ead