How to implement the code highlight as bootstrap’s example

How to implement the code highlight as bootstrap’s example

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

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

How to implement the same as bootstrap’s ?

Solutions/Answers:

Solution 1:

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:

References

Related:  Does Resharper tell me a css class is unknown because it's on a CDN?