How to implement the code highlight as bootstrap's example
Asked Answered
G

1

21

I found the bootstrap's code highlight has a very good style for code blocks.

bootstrap

I find it using google-code-prettify, but I tried google code prettify, the style is different:

google-code

How to implement the same as bootstrap's ?

Graf answered 12/7, 2012 at 11:29 Comment(0)
I
9

Not sure if you want code highlighting dynamically at run-time or generated for static use.

The TWBS Bootstrap project uses the static generated method by generating it's content with a Ruby toolset called Jekyll, the Liquid Template Engine, some custom code, and Markdown file sources.

If you need highlighting generated dynamically then there are a few options available, the most popular beeing:

Iconoscope answered 28/10, 2016 at 23:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.