Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement the code highlight as bootstrap's example

Tags:

People also ask

How do you add a highlight code in HTML?

The <mark> tag defines text that has relevance and is not intended to be used to merely apply highlighter styling. If you wish to style your text to appear highlighted, instead, use a <span> tag with the proper CSS.

What is the use of syntax highlighting?

Syntax highlighting is one strategy to improve the readability and context of the text; especially for code that spans several pages. The reader can easily ignore large sections of comments or code, depending on what they are looking for. Syntax highlighting also helps programmers find errors in their program.


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 ?