Copy from 《Syntax Highlighting》
1
2
3
| function helloWorld () {
alert("Hello, World!")
}
|
1
2
3
4
5
| public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
|
1
2
3
4
5
| package hello
fun main(args: Array<String>) {
println("Hello World!")
}
|
1
2
3
4
5
6
7
| #include <stdio.h>
/* Hello */
int main(void){
printf("Hello, World!");
return 0;
}
|
1
2
3
4
5
6
7
8
| // 'Hello World!' program
#include <iostream>
int main(){
std::cout << "Hello World!" << std::endl;
return 0;
}
|
1
2
3
4
5
6
| using System;
class HelloWorld{
public static void Main(){
System.Console.WriteLine("Hello, World!");
}
}
|
1
2
3
4
5
| <html>
<body>
Hello, World!
</body>
</html>
|
1
2
3
4
5
6
7
| package main
import fmt "fmt"
func main()
{
fmt.Printf("Hello, World!\n");
}
|
1
2
3
| object HelloWorld with Application {
Console.println("Hello, World!");
}
|
1
2
3
| <?php
echo 'Hello, World!';
?>
|