Help:Contents

From Alcugs

Jump to: navigation, search

Contents

General Help

  • Check the User's Guide for usage and configuration help.
  • Check the Editing Overview for help on the markup used for creating and changing Wiki pages.
  • Please use the Sand Box for testing.

Pyton/C/C++ Code WikiTags

This wiki has a extension that allows usage of specific tags for several languages.

Python

<python>
from alcugs import *
 
class hello:
    def __init__(self):
        self.version=1
        print "Initializing class hello"
    def hello(self,param=None):
        if param!=None:
            print "Hello %s" %param
        else:
            print "Bye"
 
a=hello()
a.hello()
del a
</python>
Python
  from alcugs import * class hello: def __init__(self): self.version=1 print "Initializing class hello" def hello(self,param=None): if param!=None: print "Hello %s" %param else: print "Bye" a=hello() a.hello() del a

C

<c>
#include <stdio.h>

int main(int argc,char * argv[]) {
  printf("Bye world");
}
</c>
C
  #include <stdio.h>   int main(int argc,char * argv[]) { printf("Bye world"); }

C++

<cpp>
#include <stdio.h>

int main(int argc,char * argv[]) {
  printf("Bye world");
}
</cpp>
C++
  #include <stdio.h>   int main(int argc,char * argv[]) { printf("Bye world"); }

SQL

<sql>
select * from vault where id=1
</sql>
SQL
  SELECT * FROM vault WHERE id=1

PHP

<php>
$var="hi"

echo($var . "world");
</php>
PHP
  $var="hi"   echo($var . "world");

Bash

<bash>
ls -lah
./configure --with-dmalloc --prefix="/home/alcugs/"
make
make install
</bash>
Bourne Shell
  ls -lah ./configure --with-dmalloc --prefix="/home/alcugs/" make make install

XML

<xml>
<?xml version="1.0"?>
<SceneObject>
 <name>AgeSDLHook</name>
 <modifier type="PythonFileMod" page=2 seq=100>
  veryverySpecialPythonFileMod
 </modifier>
</SceneObject>

<PythonFileMod>
 <name>veryverySpecialPythonFileMod</name>
 <script>script.py</script>
 <param type="int" idx=2>3</param>
 <param type="responder" page=2 seq=102>
  the_responder_name
 </param>
</PythonFileMod>
</xml>
XML
  <?xml version="1.0"?> <SceneObject> <name>AgeSDLHook</name> <modifier type="PythonFileMod" page=2 seq=100> veryverySpecialPythonFileMod </modifier> </SceneObject>   <PythonFileMod> <name>veryverySpecialPythonFileMod</name> <script>script.py</script> <param type="int" idx=2>3</param> <param type="responder" page=2 seq=102> the_responder_name </param> </PythonFileMod>

Alcugs Config

<alcugs>
# This is a comment
; This is another comment
[key]
subkey[0] = "value", "value"
subkey[1] = "value2", "value3"

[other]
another_key = "the value"
</alcugs>
Alcugs config
  # This is a comment ; This is another comment [key] subkey[0] = "value", "value" subkey[1] = "value2", "value3"   [other] another_key = "the value"

SDL

<sdl>
# This is a comment

STATEDESC test
{
  VERSION 1

  VAR INT  something[1]  DEFAULT=20

}

</sdl>
State Descripton Language
  # This is a comment   STATEDESC test { VERSION 1   VAR INT something[1] DEFAULT=20   }  


More languages will be added in the future.

Personal tools