code:
[code=cpp]
#include <iostream.h>
main()
{
cout << "Hello World!" << endl;
return 0;
}
[/code]
#include <iostream.h>
main()
{
cout << "Hello World!" << endl;
return 0;
}
code:
[code=bash]
echo 'Hello World!'
[/code]
echo 'Hello World!'
code:
[code=csharp]
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
[/code]
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
code:
[code=css]
body:before {
content: "Hello World";
}
[/code]
body:before {
content: "Hello World";
}
code:
[code=pascal]
program HelloWorld(output);
begin
WriteLn('Hello World!');
end.
[/code]
program HelloWorld(output);
begin
WriteLn('Hello World!');
end.
code:
[code=js]
<html>
<body>
<script language="JavaScript" type="text/javascript">
// Hello World in JavaScript
document.write('Hello World');
</script>
</body>
</html>
[/code]
<html>
<body>
<script language="JavaScript" type="text/javascript">
// Hello World in JavaScript
document.write('Hello World');
</script>
</body>
</html>
code:
[code=java]
class HelloWorld {
static public void main( String args[] ) {
System.out.println( "Hello World!" );
}
}
[/code]
class HelloWorld {
static public void main( String args[] ) {
System.out.println( "Hello World!" );
}
}
code:
[code=perl]
print "Hello World!\n";
[/code]
print "Hello World!\n";
code:
[code=php]
<?php
// Hello World in PHP
echo 'Hello World!';
?>
[/code]
<?php
// Hello World in PHP
echo 'Hello World!';
?>
code:
[code=py]
print "Hello World"
[/code]
print "Hello World"
code:
[code=ruby]
puts "Hello World!"
[/code]
puts "Hello World!"
code:
[code=sql]
SELECT 'Hello World';
[/code]
SELECT 'Hello World';
code:
[code=vb]
VERSION 2.00
Begin Form Form1
Caption = "Form1"
ClientHeight = 6096
ClientLeft = 936
ClientTop = 1572
ClientWidth = 6468
Height = 6540
Left = 876
LinkTopic = "Form1"
ScaleHeight = 6096
ScaleWidth = 6468
Top = 1188
Width = 6588
Begin Label Label1
Caption = "Hello World!"
Height = 372
Left = 2760
TabIndex = 0
Top = 2880
Width = 972
End
End
Option Explicit
[/code]
VERSION 2.00
Begin Form Form1
Caption = "Form1"
ClientHeight = 6096
ClientLeft = 936
ClientTop = 1572
ClientWidth = 6468
Height = 6540
Left = 876
LinkTopic = "Form1"
ScaleHeight = 6096
ScaleWidth = 6468
Top = 1188
Width = 6588
Begin Label Label1
Caption = "Hello World!"
Height = 372
Left = 2760
TabIndex = 0
Top = 2880
Width = 972
End
End
Option Explicit
code:
[code=xml]
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="HelloWorld.xsl" ?>
<!-- Hello World in XML -->
<text><string>Hello, World</string></text>
[/code]
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="HelloWorld.xsl" ?>
<!-- Hello World in XML -->
<text><string>Hello, World</string></text>