Wiki

Clone wiki

maXbox3 / Home

Welcome

Welcome to your maXbox wiki! This is the default page we've installed for your convenience. Go ahead and edit it.

Tutorials:

All maXbox Tutorials

https://bitbucket.org/max_kleiner/maxbox3/wiki/maXbox%20Tutorials

Wiki features

This wiki uses the Markdown syntax.

The wiki itself is actually a git repository, which means you can clone it, edit it locally/offline, add images or any other file type, and push it back to us. It will be live immediately.

Go ahead and try:

$ git clone https://max_kleiner@bitbucket.org/max_kleiner/maxbox3.git/wiki

Wiki pages are normal files, with the .md extension. You can edit them locally, as well as creating new ones.

Syntax highlighting

You can also highlight snippets of text (we use the excellent Pygments library).

Here's an example of some Pascal code:

#!pascal

function getExePath: string;
begin
  result:= ExtractFilePath(Application.ExeName)
end;

//replace StripTags
  with TStRegex.create(self) do begin
    //inputfile:= '<p>This is text.<br/> This is line 2</p>';
    inputfile:= exepath+'geomapX.txt';
    matchpattern.clear;
    matchpattern.add('<[^>]*>');     //find all tags and strip it!
    replacepattern.add('\z');        //Null expression
    outputfile:= exepath+'geomapXoutreplace.txt'
    execute;
    free
  end;  

Procedure BtnFactory(a,b,c,d: smallint; title,apic: string;
                        var abtn: TBitBtn; anEvent: TNotifyEvent);
begin
  abtn:= TBitBtn.create(comfrm);
  with abtn do begin
    parent:= comfrm;
    setBounds(a,b,c,d)
    font.size:= 12;
    glyph.LoadFromResourceName(HINSTANCE, apic); 
    mXButton(5,5,width, height,12,12,handle);
    caption:= title;
    onClick:= anEvent As TNotifyEvent; 
  end;
end; 

Here's an example of some Python code:

#!python

def wiki_rocks(text):
    formatter = lambda t: "funky"+t
    return formatter(text)

You can check out the source of this page to see how that's done, and make sure to bookmark the vast library of Pygment lexers, we accept the 'short name' or the 'mimetype' of anything in there.

Have fun!

Updated