Code



The Code scope function allow you to place code in the page to have it preserved verbatim as well as syntax highlighted.
Code blocks are inserted by inserting three opening curly brackets which denote the scope of the panel, then the parameters that define the type of panel within parenthesis (much like the parameters to a function call) and in this case the parameter would be Code. Next would be the content of the code which is terminated with three closing curly brackets.
While the language is auto-detected, you can also explicitly define the language by passing the language parameter with one of the following languages.


Code (string {language})


  • Name: language {Optional}
    • Type: string
    • Default: auto
    • Values: auto, wiki, cpp, lua, graphql, swift, r, yaml, kotlin, scss, shell, vbnet, json, objectivec, perl, diff, wasm, php, xml, bash, csharp, css, go, ini, javascript, less, makefile, markdown, plaintext, python, python-repl, ruby, rust, sql, typescript
    • Description: The optional name of the language to highlight.




{{Code
FROM
    Employees as E
INNER JOIN Company as C
    ON C.Id = E.CompanyId
}}

Result:
FROM
    Employees as E
INNER JOIN Company as C
    ON C.Id = E.CompanyId



You can explicitly define the language by passing a code name identifier.

{{Code(cpp)
void Calc(int a, int b)
{
    int value = a * b;

    return value
}
}}

Result:
void Calc(int a, int b)
{
    int value = a * b;

    return value
}



Function Calling Convention
Scope Function
Instruction Function
Standard Function


Wiki Help :: SearchCloud
Create a cloud of pages from a search of wiki body contents.
Wiki Help :: SearchList
Create a list from a search of wiki body contents.
Wiki Help :: Seq
Automatically create a numbered sequence on a page.
Wiki Help :: Set
Set wiki page variable value.
Wiki Help :: Similar
Create a list of similar pages based on tag similarities.
Wiki Help :: SiteName
Displays the name of the configured site.
Wiki Help :: Snippet
Injects the value of a previously defined snippet variable.
Wiki Help :: Standard Function
Standard functions are general use functions used by contributors to build a page and make it dynamic.
Wiki Help :: StripedTable
The StripedTable scope function allows you to create tables with columns and alternating colored rows.
Wiki Help :: Table
The Table scope function allows you to create tables with rows and columns.