BakkesMod Programming Wiki
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Code Snippet Example

If you want to add a new snippet to the page, simply make a code snippet in this folder like this
Give your snippet a unique name and send the pull request!
Make sure to fill out the fields in the top, but do not include a weight
Everything is written in Markdown, but you can add html inside of {{}}

Make code blocks using highlights

{{< highlight cpp "linenos=table" >}}
// Wow look at this code  
int a = 1;  
int b = 1;  
if (a + b == 11) {  
    LOG("Success");  
} else {  
    LOG("Failure");  
}  
{{< /highlight >}}

becomes

1
2
3
4
5
6
7
8
// Wow look at this code  
int a = 1;  
int b = 1;  
if (a + b == 11) {  
    LOG("Success");  
} else {  
    LOG("Failure");  
}  

If you don’t want the line numbers or highlighting, just use a normal Markdown code block

    ```cpp 
    // codeblock
    ```

becomes

// codeblock

Written by your name hereCollaborations from any other people involved