差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
syntaxtest [2007/05/31 15:37] – miura | syntaxtest [2023/04/08 18:05] (現在) – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | * [[wiki: | + | ====== はろ〜わ〜るど ====== |
- | * 上の「Wikiの構文については [[wiki: | + | [C] |
+ | <WRAP color_term> | ||
+ | <WRAP color_mincode>< | ||
+ | #include < | ||
- | | + | /* コメント */ |
+ | int main(int argc, char *argv[]) | ||
+ | { | ||
+ | printf(" | ||
+ | |||
+ | return 0; | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
- | ====== WikiTest H1 ====== | + | [C++] |
- | 勝手に区切ってくれるようです | + | <WRAP color_term> |
- | ===== WikiTest H2 ===== | + | <WRAP color_mincode>< |
- | 勝手に区切ってくれるようです | + | #include < |
- | ==== WikiTest H3 ==== | + | |
- | 勝手に区切ってくれません | + | |
- | === WikiTest H4 === | + | |
- | 勝手に区切ってくれません | + | |
- | == WikiTest H5 == | + | |
- | 勝手に区切ってくれません | + | |
- | H1~H3は勝手に目次が作られるご様子。 | + | using namespace std; |
+ | // 定番のこんにちは世界 | ||
+ | int main(int argc, char *argv[]) | ||
+ | { | ||
+ | cout << "Hello World!!" | ||
+ | | ||
+ | return 0; | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
- | ====== 実験 ====== | + | [C#] |
- | Normal WikiTest\\ | + | <WRAP color_term> |
- | Code '' | + | <WRAP color_mincode><code csharp> |
- | UnderLine __WikiTest__\\ | + | using System; |
- | Bold **WikiTest**\\ | + | |
- | Italic // | + | |
- | ItalicBold1 // | + | |
- | ItalicBold2 **// | + | |
- | StrikeLine | + | |
- | subscript | + | |
- | superscript < | + | |
- | ノードの分かれるような多重リストはどう作るのかは不明 | + | namespace Hello |
- | ---- | + | { |
- | - 記号付きリスト1 | + | /// < |
- | - 記号付きリスト2 | + | public class HelloWorld |
- | - 記号付きリスト3 | + | { |
- | - 記号付きリスト4 | + | public static int Main() |
- | - 記号付きリスト5 | + | { |
- | - 記号付きリスト6 | + | Console.WriteLine(" |
+ | |||
+ | | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
- | ---- | + | [Python] |
- | * 記号なしリスト1 | + | <WRAP color_term> |
- | * 記号なしリスト2 | + | <WRAP color_mincode>< |
- | * 記号なしリスト3 | + | # |
- | * 記号なしリスト4 | + | # -*- coding: utf-8 -*- |
- | * 記号なしリスト5 | + | |
- | * 記号なしリスト6 | + | |
- | ---- | + | |
- | リストからは、1行は空けないと区切り線にはならないご様子 | + | |
- | ---- | + | |
- | 列ヘッダ | + | # pythonのこんにちは世界 |
- | ^ Header 1 ^ Header 2 ^ Header 3 ^ | + | def main(): |
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | print "Hello World!" |
- | | Row 2 Col 1 | 列合成を行った場合(Pipeを連続させる)|| | + | |
- | | Row 3 Col 1 | Row 2 Col 2 | Row 2 Col 3 | | + | |
- | 行ヘッダ | + | if __name__ == ' |
- | ^ VerticalHeader0| Row 0 Col 0 | Row 0 Col 1 | Row 0 Col 2 | | + | |
- | ^ VerticalHeader1| 3列で合成を行う||| | + | </ |
- | ^ VerticalHeader2| Row 2 Col 0 | Row 2 Col 1 | Row 2 Col 2 | | + | </ |
- | 行列ヘッダ | + | [Java] |
- | | ^ HorizonHeader0 | + | <WRAP color_term> |
- | ^ VerticalHeader0| Row 0 Col 0 | Row 0 Col 1 | | + | <WRAP color_mincode>< |
- | ^ VerticalHeader1| 列を合成しない場合| | + | public class HelloWorld { |
- | ^ VerticalHeader2| Row 2 Col 0 | Row 2 Col 1 | | + | public static void main(String[] args) { |
+ | System.out.println(" | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
- | 応用 | + | [SQL] |
- | | ^ HorizonHeader0 | + | <WRAP color_term> |
- | | ^ Area1Header0 ^ Area1Header1 ^ Area1Header2 ^ Area1Header3 ^ | + | <WRAP color_mincode>< |
- | ^ VerticalHeader0| Row 0 Col 0 | Row 0 Col 1 | Row 0 Col 2 | Row 0 Col 3 | | + | /* SQL */ |
- | ^ VerticalHeader1| Row 1 Col 0 | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | SELECT |
- | ^ VerticalHeader2| Row 2 Col 0 | Row 2 Col 1 | Row 2 Col 2 | Row 2 Col 3 | | + | ' |
- | ^ VerticalHeader3| Row 3 Col 0 | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | + | CASE COL1 |
- | | ^ Area2Header0 ^ Area2Header1 ^ Area2Header2 ^ Area2Header3 ^ | + | WHEN '1' THEN ' |
- | ^ VerticalHeader4| Row 4 Col 0 | Row 4 Col 1 | Row 4 Col 2 | Row 4 Col 3 | | + | WHEN '2' THEN ' |
- | ^ VerticalHeader5| Row 5 Col 0 | Row 5 Col 1 | Row 5 Col 2 | Row 5 Col 3 | | + | ELSE COL1 |
- | ^ VerticalHeader6| Row 6 Col 0 | Row 6 Col 1 | Row 6 Col 2 | Row 6 Col 3 | | + | END, |
- | ^Total | + | COL2, COL3 |
- | ^ | + | FROM TABLE1 a |
- | ^ | + | INNER JOIN TABLE2 b ON a.COL1 = b.COL2 AND a.COL2 = b.COL2 |
- | 配置によって自動的にTextAlignが確定する仕様なようで。 | + | WHERE COL1 LIKE ' |
+ | </ | ||
+ | </ | ||
- | ---- | + | [Assembler] |
+ | <WRAP color_term> | ||
+ | <WRAP color_mincode>< | ||
+ | ; 16bit com形式 | ||
+ | org 100h | ||
- | 行頭に1個スペースだと変わらず~\\ | + | mov ah, 09h |
- | DokuWiki supports [[doku> | + | mov dx, msg |
- | For example this is a link to Wikipedia' | + | int 21h |
- | 行頭に2個以上スペースでコード的表示かな。 | + | mov ah, 4Ch |
- | | + | int 21h |
- | For example this is a link to Wikipedia' | + | |
- | 空行でもスペースが入るとコードとして連続してくれるご様子。 | + | msg db |
- | | + | </code></WRAP> |
- | | + | </WRAP> |
- | End Sub | + | |
- | + | ||
- | ''' | + | |
- | | + | |
- | End Sub | + | |
- | VBソース表示用プラグインで表示 (タグはたぶんあってると思うけど、.netタグがあるかもしれない) | + | [Delphi] |
- | < | + | <WRAP color_term> |
- | Dim _sampleS As String | + | <WRAP color_mincode> |
- | Private _sampleI As Integer | + | program HelloWorld; |
- | Protected Frined _sampleB As Boolean | + | uses |
+ | | ||
+ | begin | ||
+ | ShowMessage(' | ||
+ | end. | ||
+ | </ | ||
+ | </ | ||
- | ''' | + | |
- | Public Sub New() | + | <code> |
- | End Sub | + | 4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic |
- | + | ||
- | ''' | + | |
- | Public Sub SampleMethod(ByVal sampleString As String, | + | |
- | | + | |
- | End Sub | + | |
</ | </ | ||
- | |||
- | Javaの人にサンプルをお願い | ||
- | <code java> | ||
- | </ | ||
- | |||
- | Cの人にサンプルをお願い (タグがあってるかは不明) | ||
- | <code c> | ||
- | </ | ||
- | |||
- | C# | ||
- | <code cs> | ||
- | </ | ||
- | |||
- | |||
- | コード表示での文字がデカすぎるが・・・。小さくするにはどうするのだろう?\\ | ||
- | SyntaxHelpが英語だけでわかりにくいので、そのうち日本語版を拾ってきましょう。\\ | ||
- | もしくは自作する方向で。 | ||