# How to define highlighting styles for blocks?

**URL:** <https://discuss.codemirror.net/t/how-to-define-highlighting-styles-for-blocks/4029>\
**Category:** v6\
**Created:** [February 19, 2022, 7:08am UTC](https://discuss.codemirror.net/t/how-to-define-highlighting-styles-for-blocks/4029 "2022-02-19T07:08:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mb21](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/mb21/32/4617_2.png) [@mb21](https://discuss.codemirror.net/u/mb21)\
**Post date:** [August 14, 2024, 10:33am UTC](https://discuss.codemirror.net/t/how-to-define-highlighting-styles-for-blocks/4029/4 "2024-08-14T10:33:23Z")

</div>

@marijn I assume the situation is still the same? Is this an intentional design decision or just not implemented in `@codemirror/lang-markdown` yet?

Seems weird that we have fancy syntax highlighting of javascript in code blocks (as demonstrated in [the example](https://codemirror.net/try/?example=Markdown%20code%20block%20highlighting)), but there is no generic thing to match on for all code blocks and not even a span is emitted for markdown inline code spans.

---

_[View the full topic](https://discuss.codemirror.net/t/how-to-define-highlighting-styles-for-blocks/4029)._
