How-to: Difference between revisions
Jump to navigation
Jump to search
m (→Shortcuts) |
mNo edit summary |
||
Line 60: | Line 60: | ||
g.salute | g.salute | ||
</syntaxhighlight> | </syntaxhighlight> | ||
= Tools = | |||
== Image converter == | |||
[https://www.xnview.com/en/xnconvert/#downloads xnview] |
Revision as of 13:01, 1 December 2021
Templates
Shortcuts
Code | Output |
---|---|
<syntaxhighlight>
</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>