Is there a nice tool to make the code look beautiful on HTML with color?

Trying to display the code as it is but also color code it by type. Basically what a text editor looks like but on HTML.

Are there any good tools / components that can do this?

That is

  example: "item", // comment

Write a Comment