How can I show code (specifically C++) in an HTML page?

前端 未结 3 1985
独厮守ぢ
独厮守ぢ 2021-02-05 14:51

How can I show code in a website using HTML? Basically, I have a C++ program that I\'d like to share on my website and I want to show it in the page.

Is there anyway to

3条回答
  •  醉话见心
    2021-02-05 15:51

    There are various syntax highlighters out there. Google Code Prettify is a pretty good one. (Good enough for Stack Overflow to use, anyway.)

提交回复
热议问题