Y
Hacker News
new
|
ask
|
show
|
jobs
by
jakubw
5144 days ago
Some syntax highlighters, such as highlight.js [0], can do language detection and it works reasonably well with short snippets too.
[0]
http://softwaremaniacs.org/soft/highlight/en/