middleman / middleman-syntax

Code syntax highlighting plugin via Rouge for Middleman
https://middlemanapp.com
MIT License
179 stars 57 forks source link

Highlight specific lines in code block #71

Closed inem closed 7 years ago

inem commented 7 years ago

It is important when you want to make emphasis on specific lines in code block.

The problem is that everything in code block is interpreted as code, and as far as I know there's no way to add special markup for that highlighting:

  script:
  - apt-get update && apt-get install lftp
<b>  - lftp -c "open -u $FTP_LOGIN,$FTP_PASSWORD $SERVER; $FTP_COMMANDS"<b>

Do you maybe have an idea how to approach this problem?

inem commented 7 years ago

Ok, nevermind. Figured out how to do that with JS.

Here's starting point: https://jsfiddle.net/xhqr5eky/