# Highlight inside the code block

**URL:** <https://talk.jekyllrb.com/t/highlight-inside-the-code-block/792>\
**Category:** Help\
**Created:** [July 17, 2017, 6:57am UTC](https://talk.jekyllrb.com/t/highlight-inside-the-code-block/792 "2017-07-17T06:57:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmfigol](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/dmfigol/32/351_2.png) [@dmfigol](https://talk.jekyllrb.com/u/dmfigol)\
**Post date:** [July 17, 2017, 6:57am UTC](https://talk.jekyllrb.com/t/highlight-inside-the-code-block/792/1 "2017-07-17T06:57:19Z")

</div>

Currently I use Rouge to highlight my code. What I want to do is to be able to highlight some code with bold/red inside the code block.  
Any ideas how could I do that?  
Thanks!

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [July 17, 2017, 4:22pm UTC](https://talk.jekyllrb.com/t/highlight-inside-the-code-block/792/2 "2017-07-17T16:22:01Z")

</div>

I don’t think that is supported at the moment though maybe it is on their radar?

[https://github.com/jneen/rouge/issues/617](https://github.com/jneen/rouge/issues/617)

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [July 17, 2017, 7:38pm UTC](https://talk.jekyllrb.com/t/highlight-inside-the-code-block/792/3 "2017-07-17T19:38:43Z")

</div>

Possible alternative is to use **Prism** instead. It has support for highlighting specific lines of code.

[http://prismjs.com/plugins/line-highlight/](http://prismjs.com/plugins/line-highlight/)

---

<div class="post-metadata">

**Author:** ![dmfigol](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/dmfigol/32/351_2.png) [@dmfigol](https://talk.jekyllrb.com/u/dmfigol)\
**Post date:** [July 19, 2017, 10:01pm UTC](https://talk.jekyllrb.com/t/highlight-inside-the-code-block/792/4 "2017-07-19T22:01:55Z")

</div>

Thanks for suggestion! It looks interesting, however I failed to describe what I really want to achieve. I would like to highlight specific words (not lines) inside the code block. In fact, I would even agree to drop syntax highlighting at all to get this feature.  
So basically the requirements are: block of text with a monospace font + highlight any words I need. Any ideas how could I do that?
