Code Blocks

Create code blocks by using [[code]]…[[/code]] tags (each on its own line).

This is an example code block!

All wiki syntax inside a code block except [[include]] tags is treated as literal text and not processed. To prevent an include tag from being processed, put a single space in front of it.

Each code block on a page has a unique URL that lets you access it individually. This is especially useful for code blocks that contain CSS code (type = "css"):

http://mysite.wikidot.com/category:page/code
http://mysite.wikidot.com/category:page/code/2  -- second block

This way you can extract code blocks defined in the page source itself, without taking any _template into account. To access code blocks form page source combined with _template, use the following URLs:

http://mysite.wikidot.com/category:page/code_  -- note the trailing underscore
http://mysite.wikidot.com/category:page/code_/2  -- second block

To create PHP blocks that get automatically colorized when you use PHP tags, simply surround the code with [[code type="php"]]…[[/code]] tags).

To get PHP code colorized you should surround it with <?php.. ?>.

Wikidot.com uses PEAR::Text_Highlighter and supports a number of color schemes. Here is what is supported (allowed type values):

php, html, cpp, css, diff, dtd, java, javascript, perl, python, ruby, xml.

[[code type="php"]]
<?php
/* comment */
for($i=0; $i<100; $i++){
echo "number".$i."\n";
}
?>
[[/code]]
<?php
/* comment */
for($i=0; $i<100; $i++){
echo "number".$i."\n";
}
?>
黄州开出租车赚钱吗 投36元每天赚200是真的吗 快乐8软件下载 河南快赢481开奖结果查询 股票交易k线图 好玩的棋盘游戏下载 中泰化学股票后市走 大唐棋牌? 资产配置基金管理 新开棋牌游戏平台? 广东11选五玩法规则 波波网赚论坛 幸运28是不是全国开奖 本港台开奖直播+开奖结果 澳洲快乐8官方 美女捕鱼游戏手机版 天天爱海南麻将官方安装