Testing the syntax highlighting

Just installed a new plugin and want to test it. And what could be better than testing it in several programming languages at once?

# Language: Ruby
# This is so cool because it demonstrates how the String class itself gets opened and augmented
class String
     def say
         puts self
     end
 end
 'Hello, world!'.say
Language: Brainfuck
This is just weird (but funny!)
++++++++++[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.<<+++++++++++++++.
>.+++.------.--------.>+.>.
// Language: Objective-C
/*
Hmm... I don't really like this language but it's amazing that most parts
of Snow Leopard, Apple's latest operating system is written in this one
(or at least I think so)
*/
#import <stdio.h>
#import <objc/Object.h> 
 
@interface Hello : Object
{
}
- hello;
@end 
 
@implementation Hello
- hello
{
   printf("Hello, world!\n");
}
@end 
 
int main(void)
{
   id obj;
   obj = [Hello new];
   [obj hello];
   [obj free];
   return 0;
}
// Language: JAVA
// A classic
 public class HelloWorld
 {
      public static void main(String[] args) 
      {
           System.out.println("Hello, world!");
      }
 }
// Language: C#
// Looks almost like JAVA, feels kind of like JAVA, has a really bad IDE - in contrast to JAVA
class HelloWorldApp
{
    static void Main()
    {
        System.Console.WriteLine("Hello, world!");
    }
}
// Language: C
// What should I say? Almost everyone learns programming here!
 #include <stdio .h>
 
 int main(void)
 {
    printf("Hello, world!\n");
    return 0;
 }
  1. sehr ordentlich! er benutzt wp-syntax. gut zu wissen. spiele ja immer noch mit dem gedanken, noch einen techblog zu eröffnen …

    gut dass du brainfuck mit aufgenommen hast!

  2. Warum muß es eigentlich immer “Hello World” sein…? 😉

  3. Und meine Damen und Herren, warum eigentlich nicht?

    :mrgreen:

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>