知識、感動をみんなと同期(Sync)するブログ

Highlight.jsの言語別のハイライトデモ

Highlight.jsで、言語別にどのようなシンタックスハイライトになるのかのデモンストレーションです。

ハイライト

Diffのコードをハイライトしたデモです。コードはこちらのウェブページのものを利用させていただきました。

0a1,6
> This is an important
> notice! It should
> therefore be located at
> the beginning of this
> document!
> 
8,14c14
< compress the size of the
< changes.
< 
< This paragraph contains
< text that is outdated.
< It will be deleted in the
< near future.
---
> compress anything.
17c17
< check this dokument. On
---
> check this document. On
24c24,28
< be added after it.
---
> be added after it.
> 
> This paragraph contains
> important new additions
> to this document.