ユーザ用ツール

サイト用ツール


syntaxtest

はろ〜わ〜るど

[C]

#include <stdio.h>
 
/* コメント */
int main(int argc, char *argv[])
{
    printf("Hello World!!\n);
 
    return 0;
}

[C++]

#include <iostream>
 
using namespace std;
 
// 定番のこんにちは世界
int main(int argc, char *argv[])
{
    cout << "Hello World!!" << endl;
 
    return 0;
}

[C#]

using System;
 
namespace Hello
{
    /// <summary>定番のこんにちは世界</summary>
    public class HelloWorld
    {
        public static int Main()
        {
            Console.WriteLine("Hello World!!");
 
            return 0;
        }
    }
}

[Python]

#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
# pythonのこんにちは世界
def main():
    print "Hello World!"
 
if __name__ == '__main__':
    main()

[Java]

public class HelloWorld {
    public static void main(String[] args) {
	System.out.println("Hello World!!");
    }
}

[SQL]

/* SQL */
SELECT
    'Hello World!!' AS MSG,
    CASE COL1
        WHEN '1' THEN 'Test1'
        WHEN '2' THEN 'Test2'
        ELSE COL1
    END,
    COL2, COL3
FROM TABLE1 a
    INNER JOIN TABLE2 b ON a.COL1 = b.COL2 AND a.COL2 = b.COL2
WHERE COL1 LIKE '[123456789]0%'

[Assembler]

; 16bit com形式
org    100h
 
mov    ah, 09h
mov    dx, msg
int    21h
 
mov    ah, 4Ch
int    21h
 
msg    db    'Hello, world!!',0Dh,0Ah,'$'

[Delphi]

program HelloWorld;
uses
    Dialogs;
begin
    ShowMessage('Hello, World!!');
end.

サポート言語 actionscript, actionscript-french, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, caddcl, cadlisp, c, c_mac, cfm, cpp, csharp, css, delphi, diff, d, div, dos, eiffel, freebasic, gml, html4strict, ini, inno, java, java5, javascript, lisp, lua, matlab, mpasm, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, perl, php-brief, php, python, qbasic, scheme, sdlbasic, smarty, sql, tsql, robots, ruby, vb, vbnet, vhdl, visualfoxpro, xml

syntaxtest.txt · 最終更新: 2019/08/19 07:17 by ともやん