Background color for code inside tags


I’m creating a theme and I want the give a different background color to the code inside the language opening and closing tag.

I want it to be like that:

But all I ended up with is this:

Instead of giving everything between the opening and closing the same bg color. It gave the bg color line by line…

How can I fix that ?


I think this problem was already discussed and resolved in this thread:


Thanks @abe. I agree that this is a duplicate. We like to unify similar discussions under one topic so that people don’t have to read a bunch of different threads to get the whole story. Please continue the discussion there. I’ll be closing this topic as duplicate.

closed #4

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.