Documentation of command line interface

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1067 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-05 19:34:15 +00:00
parent 736e10d2cc
commit 685f9ca0b2
5 changed files with 164 additions and 4 deletions
@@ -145,11 +145,15 @@ function autoformat__handle(&$i, $prefix, $first, $fail_same = false) {
$state = '>';
} elseif ($line{0} == ']') {
// other code
if ($state == ']') $text = substr($text,0,-6);
if ($state == '>') $text = substr($text,0,-6);
else $text .= '<pre>';
$text .= htmlspecialchars(substr($line, 1));
if (substr($line,0,2)==']]') { // unescaped
$text .= substr($line, 2);
} else {
$text .= htmlspecialchars(substr($line, 1));
}
$text .= "\n</pre>";
$state = ']';
$state = '>';
// Html
} elseif (preg_match("@^</?(pre|ul|ol|li|div|blockquote|>)@", $line)) {
@@ -285,7 +289,7 @@ function autoformat__link_s($matches) {
}
function autoformat__url($url) {
if (preg_match("/^(type|fun|script|file):(.*)/i",$url,$matches)) {
if (preg_match("/^(type|fun|script|file|cli):(.*)/i",$url,$matches)) {
$part = $matches[1];
if ($part == 'fun') $part = 'function';
$sub = str_replace(' ','_',strtolower($matches[2]));