How do I add syntax highlighting to a WordPress blog hosted on WordPress.com?

前端 未结 9 665
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-31 07:57

I\'d like to have a good syntax highlighter for my WordPress blog. What options do I have available? I often see one which has well-colored syntax highlighting and options to c

9条回答
  •  盖世英雄少女心
    2021-01-31 08:21

    SyntaxHighlighter is a pretty good tool. It uses JavaScript with CSS classes to mark HTML elements that should be highlighted. It also allows code to be copied to the clipboard and printed.

提交回复
热议问题