How-to: Difference between revisions
Jump to navigation
Jump to search
m →Tools |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
! Output | ! Output | ||
|- | |- | ||
| <syntaxhighlight> | | <syntaxhighlight lang="html"> | ||
{{Shortcut|botland.png|botland.com.pl|Botland store}} | {{Shortcut|botland.png|https://botland.com.pl|Botland store}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| | | | ||
{{Shortcut|botland.png|botland.com.pl|Botland store}} | {{Shortcut|botland.png|https://botland.com.pl|Botland store}} | ||
|} | |} | ||
Latest revision as of 13:29, 1 December 2021
Templates
Shortcuts
| Code | Output |
|---|---|
| <syntaxhighlight lang="html">
</syntaxhighlight> |
|
Syntax highligher
Current syntax highligher integration: Syntax highligher
Highligher: highlight.js
Sample code
<syntaxhighlight> # The Greeter class class Greeter def initialize(name) @name = name.capitalize end def salute puts "Hello #{@name}!" end end g = Greeter.new("world") g.salute </syntaxhighlight>
will result to
<syntaxhighlight>
- The Greeter class
class Greeter
def initialize(name) @name = name.capitalize end
def salute
puts "Hello #{@name}!"
end
end
g = Greeter.new("world") g.salute </syntaxhighlight>

