Hello, i would like to change de color of my inlinde-code, but i don’t want one simple color. I would like it look likes my code blocks exemple: const name = "James" and than like any code editor, the “const” is for ex blue, the variable name is white, the equal is red, the string is green ect…
My theme is Dracula for obsidian
I’ve tried multiple things here is one of my snippets:
I’ve not heard of any syntax highlighting happening in inline code blocks. I did however do a simple search related to “prismjs inline code” where prismjs is the engine used to do the syntax highlighting, and found this, with code like the following:
With just the language class it still displays as a block (even within other text), but if you add style="display: inline; " to it blends into the paragraph. However in some of my tests the line is not aligned with the other text… Could most likely be countered with some other CSS somehow.
In one of the better tests it looked like this:
Note, this is reading view with the Minimal theme. In live preview, it’s just a code block. But if I remember correctly, live preview uses a different syntax highlight engine.