question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Theme Customization per code block

See original GitHub issue

Add support for attribute controlling what theme/style the code snippet should show in. As well as a language tag for specifying what language it is. The theme attribute could be set to the current theme unless anything else is set.

<pre><code language="cs" theme="dracula">
using system.net

namespace myApp {
	int myapp = new App();
	myapp.isAwesome();
}
</code></pre>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
egor-rogovcommented, Oct 12, 2019

Every feature - no, but this one looks like something that can be accepted for me.

1reaction
joshgoebelcommented, Oct 6, 2019

You can already do half of this with class:


<pre><code class="cs">...</code></pre>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I add a custom theme to the code block macro?
It's not possible to customize the theme of the code block macro, but I've raised a feature request below for this: CONFSERVER-59314 Ability...
Read more >
How to Use the WordPress Code Block - Elegant Themes
The first setting uses left and right arrows. This changes the block to a Custom HTML Block, Preformatted Block, changes the columns, and...
Read more >
Creating WordPress block themes - Full Site Editing
Introduction to creating block-based WordPress themes for full site editing. Learn more about the theme file structure and block templates.
Read more >
How to Customize Your WordPress Theme (5 Step-by ... - Kinsta
Need to change the look of your WordPress theme? Learn how to customize WordPress themes properly using one of the best methods (tutorial)....
Read more >
Creating a custom HTML theme - Tumblr
How to create a custom HTML theme. Want to create a custom look for your blog? If you're comfortable hand-coding HTML, then you've...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found