Color (syntax highlighting) within an HTML tag

后端 未结 3 1330
感情败类
感情败类 2021-01-30 17:13

In a code fragment like the following ...

class Foo
{
  internal Foo()
  {
    for (int i = 0; i < 42; ++i);
  }
}

... its various keywords

3条回答
  •  灰色年华
    2021-01-30 17:53

    It's a Javascript library. There are quite a few out there, the most popular being SyntaxHighlighter. My personal favorite is Chili, though.

提交回复
热议问题