Revision Difference
Code#561672
<cat>editing</cat>
⤶
Markdown:⤶
⤶
```markdown⤶
\`\`\`lua⤶
<title> Code Blocks </title>⤶
⤶
# Code Blocks⤶
⤶
You can syntax highlight code from a small set of languages.⤶
⤶
| Language | Syntax Name |⤶
|:--------:|:-----------:|⤶
| JavaScript | `JavaScript`⤶
| Markdown | `Markdown`⤶
| Lua | `Lua`⤶
| C++ | `C++`⤶
| C# | `CSharp`⤶
⤶
<note>⤶
⤶
The list can be expanded on <page text = 'request'>Bugs_And_Requests</page>.⤶
⤶
</note>⤶
⤶
<note>⤶
⤶
If you don't select a language, the pages default will be used. ⤶
Garry's Mods wiki pages default to `Lua` for example⤶
⤶
</note>⤶
⤶
<br/>⤶
⤶
## Lua⤶
⤶
```Markdown⤶
\`\`\`Lua⤶
function print( values )
player.say( "hello" .. values )
player.say( 'hello' .. values )
end
\`\`\`
```
⤶
Result:⤶
⤶
```lua⤶
⤶
```Lua⤶
function print( values )
player.say( "hello" .. values )
player.say( 'hello' .. values )
end
```⤶
⤶
<br/>⤶
⤶
## Markdown⤶
⤶
```Markdown⤶
\`\`\`Markdown⤶
# H1⤶
## H2⤶
### H3⤶
#### H4⤶
##### H5⤶
###### H6⤶
⤶
Description with **bold** & *italic* text.⤶
⤶
| Left | Center | Right |⤶
|:-----|:------:|------:|⤶
| Cell | Cell | Cell⤶
\`\`\`⤶
```
⤶
⤶
## Languages⤶
⤶
We can expand this list as we need to, but right now the supported languages are:⤶
⤶
* lua⤶
* csharp⤶
* html⤶
* markdown⤶
* cpp⤶
* js⤶
⤶
If you don't define the language it'll use the site default (for example, under gmod it's lua).⤶
⤶
```Markdown⤶
# H1⤶
## H2⤶
### H3⤶
#### H4⤶
##### H5⤶
###### H6⤶
⤶
Description with **bold** & *italic* text.⤶
⤶
| Left | Center | Right |⤶
|:-----|:------:|------:|⤶
| Cell | Cell | Cell⤶
```⤶
⤶
<br/>⤶
⤶
## HTML⤶
⤶
```Markdown⤶
\`\`\`HTML⤶
<html>⤶
⤶
<!--⤶
Multiline Comment⤶
-->⤶
⤶
<head>⤶
⤶
<title> Title </title>⤶
⤶
<style>⤶
⤶
div[ data-attribute = value ]{⤶
color : red ;⤶
}⤶
⤶
</style>⤶
⤶
<script type = module >⤶
⤶
const { debug } = console⤶
⤶
debug('Hello World')⤶
⤶
</script>⤶
⤶
</head>⤶
<body>⤶
<div data-attribute = value >⤶
Div with Text⤶
</div>⤶
</body>⤶
</html>⤶
\`\`\`⤶
```⤶
⤶
```HTML⤶
<html>⤶
⤶
<!--⤶
Multiline Comment⤶
-->⤶
⤶
<head>⤶
⤶
<title> Title </title>⤶
⤶
<style>⤶
⤶
div[ data-attribute = value ]{⤶
color : red ;⤶
}⤶
⤶
</style>⤶
⤶
<script type = module >⤶
⤶
const { debug } = console⤶
⤶
debug('Hello World')⤶
⤶
</script>⤶
⤶
</head>⤶
<body>⤶
<div data-attribute = value >⤶
Div with Text⤶
</div>⤶
</body>⤶
</html>⤶
```⤶
⤶
<br/>⤶
⤶
## JavaScript⤶
⤶
```Markdown⤶
\`\`\`JavaScript⤶
const { debug } = console⤶
⤶
debug('Hello World')⤶
\`\`\`⤶
```⤶
⤶
```JavaScript⤶
const { debug } = console⤶
⤶
debug('Hello World')⤶
```⤶
⤶
## C#⤶
⤶
```Markdown⤶
\`\`\`CSharp⤶
namespace HelloWorld {⤶
class Hello { ⤶
static void Main( string [] args ){⤶
System.Console.WriteLine("Hello World!");⤶
}⤶
}⤶
}⤶
\`\`\`⤶
```⤶
⤶
```CSharp⤶
namespace HelloWorld {⤶
class Hello { ⤶
static void Main( string [] args ){⤶
System.Console.WriteLine("Hello World!");⤶
}⤶
}⤶
}⤶
```⤶
⤶
## C++⤶
⤶
```Markdown⤶
\`\`\`C++⤶
#include <iostream>⤶
⤶
int main() {⤶
std::cout << "Hello World!" ;⤶
return 0 ;⤶
}⤶
\`\`\`⤶
```⤶
⤶
```C++⤶
#include <iostream>⤶
⤶
int main() {⤶
std::cout << "Hello World!" ;⤶
return 0 ;⤶
}⤶
```