Wikiの書き方
提供:8x9 Minecraft Wiki
				
								
				(版間での差分)
				
																
				
				
								
				細  | 
		|||
| (1人の利用者による、間の4版が非表示) | |||
| 14行: | 14行: | ||
==samples==  | ==samples==  | ||
| − | + | ===画像===  | |
[[ファイル:2016-05-23 test2.png]]  | [[ファイル:2016-05-23 test2.png]]  | ||
| − | + | ===SyntaxHighlighter===  | |
| − | + | プログラムの色付け  | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| + | Lua:  | ||
<syntaxhighlight lang="lua">  | <syntaxhighlight lang="lua">  | ||
| 44行: | 29行: | ||
local ty = 4  | local ty = 4  | ||
| − | function   | + | function digdag()  | 
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
   turtle.dig()  |    turtle.dig()  | ||
   turtle.forward()  |    turtle.forward()  | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
   return true  |    return true  | ||
| 78行: | 39行: | ||
   for y = 1, ty do  |    for y = 1, ty do  | ||
     turtle.forward()  |      turtle.forward()  | ||
| − |      turtle.  | + |      turtle.turnRight()  | 
| − | + | ||
   end  |    end  | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
end  | end  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| − | + | ||
| − | + | HTML:  | |
| − | + | ||
| − | + | <syntaxhighlight lang="html4strict">  | |
| − | + | <html>  | |
| − | end  | + |    <head>  | 
| − | + |     <title>kinopy home page</title>  | |
| + |    </head>  | ||
| + |    <body>  | ||
| + |     <p>こんにちは</p>  | ||
| + |     <p><font size=“3” color=“00ff00”>hello!</font></p>  | ||
| + |   </body>  | ||
| + | </html>  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | ----  | ||
| + | |||
| + | ==Check any syntaxes==  | ||
| + | |||
| + | ※ここから先は管理者用のテストエリアです  | ||
| + | |||
| + | [[ファイル:2016-05-23 test.png]]  | ||
| + | |||
| + | ===GeSHi===  | ||
| + | |||
| + | <syntaxhighlight lang="php">  | ||
| + | <?php  | ||
| + |     $v = "string";    // sample initialization  | ||
| + | ?>  | ||
| + | html text  | ||
| + | <?  | ||
| + |     echo $v;         // end of php code  | ||
| + | ?>  | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
2016年5月28日 (土) 11:47時点における最新版
目次 | 
書き方
samples
画像
SyntaxHighlighter
プログラムの色付け
Lua:
-- User define local tx = 3 local ty = 4 function digdag() turtle.dig() turtle.forward() return true end for x = 1, tx do for y = 1, ty do turtle.forward() turtle.turnRight() end end
HTML:
<html> <head> <title>kinopy home page</title> </head> <body> <p>こんにちは</p> <p><font size=“3” color=“00ff00”>hello!</font></p> </body> </html>
Check any syntaxes
※ここから先は管理者用のテストエリアです
GeSHi
<?php $v = "string"; // sample initialization ?> html text <? echo $v; // end of php code ?>
SyntaxHighlighter
// SyntaxHighlighter makes your code snippets beautiful without tiring your servers. // http://alexgorbatchev.com var setArray = function(elems) { this.length = 0; push.apply(this, elems); return this; }
