1function helloWorld () {
2  alert("Hello, World!")
3}
1public class HelloWorld {
2  public static void main(String[] args) {
3    System.out.println("Hello, World!");
4  }
5}
1package hello
2
3fun main(args: Array<String>) {
4  println("Hello World!")
5}
1#include <stdio.h>
2
3/* Hello */
4int main(void){
5  printf("Hello, World!");
6  return 0;
7}
1// 'Hello World!' program 
2 
3#include <iostream>
4 
5int main(){
6  std::cout << "Hello World!" << std::endl;
7  return 0;
8}
1using System;
2class HelloWorld{
3  public static void Main(){ 
4    System.Console.WriteLine("Hello, World!");
5  }
6}
1<html>
2<body>
3  Hello, World!
4</body>
5</html>
1package main
2import fmt "fmt"
3
4func main() 
5{
6   fmt.Printf("Hello, World!\n");
7}
1object HelloWorld with Application {
2  Console.println("Hello, World!");
3}
1<?php
2  echo 'Hello, World!';
3?>
1print("Hello, World!") 
1(defn hello-world
2  "A function print 'Hello world'."
3  []
4  (prn "Hello world"))
 1<!DOCTYPE html>
 2<html>
 3<head>
 4  <title>{{ .Title }}</title>
 5</head>
 6<body>
 7  <h1>{{ .Title }}</h1>
 8  {{ .Content }}
 9</body>
10</html>
 1{{ partial "header.html" . }}
 2
 3  <h1>posts</h1>
 4  {{ range first 10 .Data.Pages }}
 5    {{ if eq .Type "post"}}
 6      <h2><a href="{{ .Permalink }}">{{ .Permalink }}</a></h2>
 7    {{ end }}
 8  {{ end }}
 9
10  <h1>pages</h1>
11  {{ range .Data.Pages }}
12    {{ if or (eq .Type "page") (eq .Type "about") }}
13      <h2><a href="{{ .Permalink }}">{{ .Type }} - {{ .Title }} - {{ .RelPermalink }}</a></h2>
14    {{ end }}
15  {{ end }}
16
17{{ partial "footer.html" . }}

Detect the language

1package hello
2
3fun main(args: Array<String>) {
4  println("Hello World!")
5}
1<?php
2  echo 'Hello, World!';
3?>

By {{< highlight go-html-template "linenos=table,hl_lines=1 3-7,linenostart=199" >}}..{{< / highlight >}}

199
200
201
202
203
204
205
206
<section id="main">
  <div>
   <h1 id="title">{{ .Title }}</h1>
    {{ range .Data.Pages }}
        {{ .Render "summary"}}
    {{ end }}
  </div>
</section>